shner-elmo / tradezero-api

A package for executing orders and retrieving data through the TradeZero web platform

Home Page:https://shner-elmo.github.io/tradezero-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

@jegauth Even two tabs on the same browser and device are considered separate instances and will get you disconnected...