¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Need reconnect strategy (getting a little desparate)


 

Hi,Gregory Smith,

Sounds great.Can you explain more about how to do it? I am confused about this in python,Many thanks.


On Thu, Apr 20, 2006 at 12:04 PM, Gregory Smith <gregs_net@...> wrote:
I start the TWS and my "API" handler in separate threads but from the same parent. If the API handler detects a disconnect, or if it fails to receive updates on particular exchanges (i.e. futures, equities or fx) or if there are other internal failures (db or trading strategy) then I set an error status and the parent thread shutsdown and restarts the processes (TWS, API...).

?
--


------
Forex trader
David Liao

Join [email protected] to automatically receive all group messages.