Alera Forum
Connection behavior with IB - Printable Version

+- Alera Forum (https://aleratrading.com/forum)
+-- Forum: Alera Portfolio Manager (https://aleratrading.com/forum/forumdisplay.php?fid=1)
+--- Forum: Feature Requests (https://aleratrading.com/forum/forumdisplay.php?fid=5)
+--- Thread: Connection behavior with IB (/showthread.php?tid=468)



Connection behavior with IB - andycare - 11-20-2021

Hello,

If the connection with IB breaks, APM tries to reconnect with a progressively increasing time in between the retries. I think the longest time is 60 minutes, if I remember correctly. If the last reconnect fails, APM stops trying.

I’m wondering why this is implemented in this way. A reconnect doesn’t cost anything, right?

I would prefer having a fixed interval of 30 seconds to 60 seconds (maybe even adjustable) and an unlimited number of re-tries. This would prevent manual interference in some cases and lead to a better overall stability of the automated toolchain.

Thanks and regards
Andreas


RE: Connection behavior with IB - admin - 11-29-2021

The reconnection interval is like that since usually IB goes down for 10 minutes to an hour overnight. We wanted APM to automatically reconnect after IB's servers restart overnight. If APM can't reconnect after 3 hours then it's usually because IB/IBG is down and should be restarted.

If you're often experiencing issues with APM not reconnecting (with IBG still being active in the morning) then I can definitely increase the number of retries -- please let me know. There's generally no need to try to reconnect more often than once every 30-60 minutes since APM will be back online before market hours. If you're looking to trade during pre-market hours, then it's possible APM might be offline for a bit, but I believe IB usually comes back online before 3am, so I don't think this would be an issue.