areed1192 / interactive-broker-python-api

A python packaged used to interact with the Interactive Brokers REST API.
MIT License
383 stars 124 forks source link

How often do we need to authenticate? #14

Closed wuliwei9278 closed 3 years ago

wuliwei9278 commented 3 years ago

I noticed that recently the authentication process is very often like every few hours, is that something common? or how do we fix it?

areed1192 commented 3 years ago

So, the authentication is handled entirely by the client portal gateway. From what I gathered in the documentation you must log into a session at least once per 24 hours.

wuliwei9278 commented 3 years ago

Once per 24 hours is tolerable but lately it is like every 3 hours. Is this normal?

gmcmicken commented 3 years ago

@wuliwei9278 I am seeing the same thing - every 3 hours. I can't seem to keep the session open longer than this no matter what calls I make to keep it alive, sso/validate, tickle, etc.