Connect and disconnect very quickly
jegauth opened this issue · comments
When I run this:
from tradezero_api import TradeZero
tz = TradeZero(user_name='username', password='password')
tz.login(True)
tz.conn(True)
It loads fine, but eventually just a second or two later it disconnect and the browser shut down. Why does it produce that?
Perhaps, you are using TradeZero from multiple devices? or you are creating multiple instances?
Because if you connect with the API, but open it also in another tab, or on your phone, it will disconnect the API since it can have only one instance open at a time.