Closed yboloSwiss closed 1 year ago
I am a bit confused? If you set the session token manually like you have done correctly you then don't need to call .login()
again, why are you?
FYI join the slack group for quicker responses.
Oh sorry for the mistake ! Thanks for the slack chanel.
Hello,
I recently received an email from betfair telling me that I was creating too many logins on the platform. They advised me to use the keep_alive method to keep the connections active. But my scripts are developed to be executed using azure functions. Azure functions do not persist values in memory, each script execution is independent. The keep_alive() method therefore has no effect in my case.
On the other hand, I am able to persist the value of session_token in order to re-use it for each connection and thus not generate new sessions at betfair. Except that with betfairlightweight I can't pass the session value to the APIClient object.
I tried 2 approch :
in this case the trading object does not know how to use a string as a session token.
In this case trading.set_session_token(session_token=my_session_token) seems to be ignored by the login() method
Thanks for your helps