Lean.Brokerages.InteractiveBrokers
Lean.Brokerages.InteractiveBrokers copied to clipboard
Verify Data Connection Health After Soft Restart
After a soft restart, especially the weekly one, verify the health of the data feed.
On May 18th, we got information the data farms are connected:
2025-05-18T04:18:23.3510591Z TRACE:: Brokerage.OnMessage(): Reconnect - Code: Reconnect - Connectivity between IBKR and Trader Workstation has been restored - data maintained. All data farms are connected: eufarmnj; usfarm; ushmds; secdefnj.
then
2025-05-18T04:18:25.4699774Z TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): Window event: [WINDOW_CLOSED] - Window title: [View Logs] - Window name: [null] ... 2025-05-18T04:23:03.5716123Z TRACE:: InteractiveBrokersBrokerage.StartGatewayRestartTask(): start restart in: 15:36:56.4284109... 2025-05-18T04:23:04.1532512Z TRACE:: InteractiveBrokersBrokerage.HandleError(): RequestId: -1 ErrorCode: 2104 - Market data farm connection is OK:eufarmnj 2025-05-18T04:23:04.1533068Z TRACE:: InteractiveBrokersBrokerage.StopGatewayRestartTask(): cancelled 2025-05-18T04:23:04.1533583Z TRACE:: InteractiveBrokersBrokerage.StartGatewayRestartTask(): skip restart. Disposed: False Cancelled True 2025-05-18T04:23:24.4633888Z TRACE:: Isolator.ExecuteWithTimeLimit(): Used: 383, Sample: 351, App: 3183, CurrentTimeStepElapsed: 00:00.000. CPU: 17% 2025-05-18T04:23:33.2590565Z ERROR:: ApiConnection.TryRequest(live/status/update): Error: The request timed-out. 2025-05-18T04:24:22.3627355Z TRACE:: InteractiveBrokersBrokerage.HandleError(): RequestId: -1 ErrorCode: 2107 - HMDS data farm connection is inactive but should be available upon demand.ushmds
The algorithm stopped receiving data from this time until 2025-05-19T17:40:59 when the algorithm was stopped.