I'm working in Python.
- First I login to 'https://identitysso.betfair.com/api/login' with app_key, username and password.
- I save the toekn in the response and add it to my headers as 'X-Authentication'
- I can now request event and market info.
- I log in again to 'https://identitysso-cert.betfair.com/api/certlogin' with username password and cert files
- I successfully log in and get the sessionToken then save it
- I connect to the stream and receive this message:
- I send the following message:
- I receive:
Am I using the wrong session token here? I currently only want to receive market info
- First I login to 'https://identitysso.betfair.com/api/login' with app_key, username and password.
- I save the toekn in the response and add it to my headers as 'X-Authentication'
- I can now request event and market info.
- I log in again to 'https://identitysso-cert.betfair.com/api/certlogin' with username password and cert files
- I successfully log in and get the sessionToken then save it
- I connect to the stream and receive this message:
Code:
b'{"op":"connection","connectionId":"103-240521122118-526731"}\r\n'
Code:
b'{"op": "authentication", "id": 1, "appKey": REDACTED, "session": "Bearer sessionTokenFromEarlier"}\r\n'
Code:
b'{"op":"status","id":1,"statusCode":"FAILURE","errorCode":"INVALID_SESSION_INFORMATION","errorMessage":"Bearer token / AppKey pair is invalid","connectionClosed":true,"connectionId":"103-240521122118-526731"}\r\n'
Am I using the wrong session token here? I currently only want to receive market info


Comment