Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 20:41:18 +0000



Post From: Handling IB API server disconnect - please help

[2016-06-01 03:00:05]
User754985 - Posts: 109
IB has a period - appr. from 12:15 to 12:27 - when historical and RT data servers are connected and data are getting into SC, yet "IB API server" is shown as not connected (in IB Gateway)

IB Gateway is attempting to reconnect, and SC is not. So, an order can get triggered but will not get through to IB for execution.

What would be the way to catch this situation in SC?

if (sc.ServerConnectionState==SCS_DISCONNECTED || sc.ServerConnectionState==SCS_CONNECTION_LOST)

- these get triggered on a disconnect from IB Data servers, but not IB API Order server...