APING - transfer from main wallet to games wallet

Post Reply
User avatar
jimibt
Posts: 3641
Joined: Mon Nov 30, 2015 6:42 pm
Location: Narnia

I know that the functionality of the account.TransferFunds(from, to, amount) has been deprecated (this used to transfer from the UK to the AUS wallet) and no longer works.

However, I did read that the api was going to be refactored to allow transfer between the MAIN wallet and the exchange games and poker wallets. Does anyone know if this ever happened or if there's a dirty hack that allows this to happen?? Currently using the non streaming c# APING.

cheers
jim
LinusP
Posts: 1871
Joined: Mon Jul 02, 2012 10:45 pm

Yeah you can (this is a hack/how the site does it):

endpoint: https://myaccount.betfair.com/account/transfer
data:

Code: Select all

{
        'source': 'MAIN',
        'destination': 'XG',
        'amount': 10,
}
headers:

Code: Select all

{
        'X-Application': app_key,
        'X-Authentication': session_token,
}
User avatar
jimibt
Posts: 3641
Joined: Mon Nov 30, 2015 6:42 pm
Location: Narnia

LinusP wrote:
Wed Aug 22, 2018 5:14 pm
Yeah you can (this is a hack/how the site does it):

endpoint: https://myaccount.betfair.com/account/transfer
data:

Code: Select all

{
        'source': 'MAIN',
        'destination': 'XG',
        'amount': 10,
}
headers:

Code: Select all

{
        'X-Application': app_key,
        'X-Authentication': session_token,
}
yup -thanks for that, i saw that when digging into chrome dev tools and may have to go down this route with a fake POST on that. Have now implemented... thanks
LinusP
Posts: 1871
Joined: Mon Jul 02, 2012 10:45 pm

jimibt wrote:
Wed Aug 22, 2018 5:22 pm
LinusP wrote:
Wed Aug 22, 2018 5:14 pm
Yeah you can (this is a hack/how the site does it):

endpoint: https://myaccount.betfair.com/account/transfer
data:

Code: Select all

{
        'source': 'MAIN',
        'destination': 'XG',
        'amount': 10,
}
headers:

Code: Select all

{
        'X-Application': app_key,
        'X-Authentication': session_token,
}
yup -thanks for that, i saw that when digging into chrome dev tools and may have to go down this route with a fake POST on that. Do you know if this little hack is happy to go cookieless or does it just require the ssoid session cookie extracted into a string token ?
I have never been able to use the ssoid, think its due to 2FA but just providing appKey and sessionToken has been working for a while.
User avatar
jimibt
Posts: 3641
Joined: Mon Nov 30, 2015 6:42 pm
Location: Narnia

just to confirm - are you using JSESSION for the X-Authentication header??
LinusP
Posts: 1871
Joined: Mon Jul 02, 2012 10:45 pm

jimibt wrote:
Wed Aug 22, 2018 6:10 pm
just to confirm - are you using JSESSION for the X-Authentication header??
Not sure what JSESSION is, I am using the session token returned from a normal APING login request.
User avatar
jimibt
Posts: 3641
Joined: Mon Nov 30, 2015 6:42 pm
Location: Narnia

ok, thanks - kinda got it wired up but getting a 400 bad request. probably an integration issue... thanks again
User avatar
jimibt
Posts: 3641
Joined: Mon Nov 30, 2015 6:42 pm
Location: Narnia

LinusP wrote:
Wed Aug 22, 2018 5:14 pm
Yeah you can (this is a hack/how the site does it): ....
LinusP - managed to get all the moving parts working on this and when validating it was using Fiddler. I actually stumbled upon an addon/extension for Fiddler that may interest you. It creates boiler code in python (or .net) by simply dragging the session request into the code pane of the UI. ended up revising my code to match the boiler template code as it was so well done.

http://www.chadsowald.com/software/fidd ... st-to-code

hope you have a use for it.
Post Reply

Return to “Betfair Exchange API”