Komnomnomnom / swigibpy

Third party Interactive Brokers Python API generated from TWS C++ API using SWIG.
http://github.com/Komnomnomnom/swigibpy/
Other
158 stars 35 forks source link

tws.eDisconnect() no worky? #51

Open cmorgan opened 7 years ago

cmorgan commented 7 years ago

Hi, Are you aware of lack of proper disconnect for a a clientId? By which i mean that when calling tws.eDisconnect(), and then trying to reconnect i get a client connected error. Seems only the python process ending will do, or did i miss something?

dbivolaru commented 7 years ago

Try this when closing:

tws.reqOpenOrders()
tws.eDisconnect()
cmorgan commented 7 years ago

Hi @dbivolaru, thanks for the reply. I will try what you suggest, but why would i expect

tws.reqOpenOrders()
tws.eDisconnect()

to work as successful in killing the connection vs

tws.eDisconnect()

Thanks