CQG API 4.0 - Revised
GWConnectionStatusChanged Event
See Also  Send Feedback
new_status
The current status of the connection with CQG Gateway.
CQGDirectEventsAccessor Interface : GWConnectionStatusChanged Event

Glossary Item Box

Description

Syntax

Visual Basic
Public Event GWConnectionStatusChanged( _
   ByVal new_status As eConnectionStatus _
)

Parameters

new_status
ValueDescription
csConnectionDelayedConnection is delayed.
csConnectionDownConnection is down.
csConnectionNotLoggedOnConnected but not logged on Gateway.
csConnectionTroubleTrouble with Gateway connection.
csConnectionUpConnection is up.
The current status of the connection with CQG Gateway.

Remarks

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.

See Also