Login Page - Create Account

Support Board


Date/Time: Sun, 11 May 2025 23:45:24 +0000



Post From: Handling IB API server disconnect

[2016-05-22 18:17:42]
User754985 - Posts: 109
IB has a period - appr. from 12:15 to 12:25 - when historical and RT data servers are connected and data are getting into SC, yet API server is shown as not connected.

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

What's the recommended way to catch this situation?

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

- this seems to catch disconnect from data servers, but not order server...