Replies: 2 comments 1 reply
-
Personally i have not used command server, so i can't provide much guidance here. to used it with ib-gateway-docker would require custom config, as there are no env vars defined for Regarding what i think is the question behind your question, who to reconnect to the API? i do that on the code. i use python and ib_async in particular. ib_async has a disconnect event that I use to re-try a connection and keep trying until connection is successful. this works pretty well with minimum code. this handles any data farm connection issue, including the daily reconnection, and ib-gateway daily restart without any issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
what's the best way to restart IB_gateway - I've noticed that when the Market Data Farm is Off, or disconnects, it can't be restarted even by requesting new market data from inside ib_async. The gateway has to be restarted. I'd like to automate the restart via the IBC command Server, but what are best practices to enable and expose this port inside the docker container?
https://github.com/IbcAlpha/IBC/blob/master/userguide.md#command-server
Beta Was this translation helpful? Give feedback.
All reactions