swigibpy icon indicating copy to clipboard operation
swigibpy copied to clipboard

tws.eDisconnect() no worky?

Open cmorgan opened this issue 8 years ago • 2 comments

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?

cmorgan avatar Dec 20 '16 14:12 cmorgan

Try this when closing:

tws.reqOpenOrders()
tws.eDisconnect()

dbivolaru avatar Dec 20 '16 18:12 dbivolaru

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

cmorgan avatar Jan 06 '17 08:01 cmorgan