Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection behavior with IB
#1
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
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)