Refer to CQGCEL.GWConnectionStatusChanged Event.
Visual Basic |
---|
Public Event GWConnectionStatusChanged( _ ByVal new_status As eConnectionStatus _ ) |
- new_status
The current status of the connection with CQG Gateway.Value Description csConnectionDelayed Connection is delayed. csConnectionDown Connection is down. csConnectionNotLoggedOn Connected but not logged on Gateway. csConnectionTrouble Trouble with Gateway connection. csConnectionUp Connection is up.
The functionality of CQG API v.3.0 becomes available when a GWConnectionStatusChanged event with csConnectionUp argument is fired.
Note that the user should manually set the account subscription level in order to use it. This is true for all cases: even if the connection was lost during the CQG API work, after connection is up again the account subscription level will be reset to aslNone. User should set it again to the desired value. Note that it will also reset the PositionSubcriptionLevel to the default value for all accounts.
While the CQG Gateway connection status is down, no v.3.0 functionality is available and a corresponding DataError event will be fired if the user tries to use it.