CQG API 4.0 - Revised
GWEnvironmentChanged Event
See Also  Send Feedback
event_code

The CQG Gateway environment change type.

account_id

A CQGAccount object representing the account to which the current change refers.

If the change is not account-specific, this parameter will be either Nothing or a not valid instance of CQGAccount. See Invalid Object for details.

phase_
Reserved for future use
CQGCEL Interface : GWEnvironmentChanged Event

Glossary Item Box

Description

This event is fired when a CQG Gateway environment change occurs.

Syntax

Visual Basic
Public Event GWEnvironmentChanged( _
   ByVal event_code As eGWEnvChangeCode, _
   ByVal account_id As Long, _
   ByVal phase_ As Long _
)

Parameters

event_code
ValueDescription
eccBalanceChanged

Previous close balance is changed.

eccManualStatementChanged

Manual statement change.

eccNewStatement

New statement.

eccPositionChangedPrevious close position is changed.

The CQG Gateway environment change type.

account_id

A CQGAccount object representing the account to which the current change refers.

If the change is not account-specific, this parameter will be either Nothing or a not valid instance of CQGAccount. See Invalid Object for details.

phase_
Reserved for future use

Remarks

Generally the CQG Gateway environment changes trigger a big amount of positions reload. User should be aware that after this event, a number of AccountChanged events with actAccountChanged and actPositionsReloaded types will be fired.

Example

See the implementation of CQGCEL events handling in the AccountChanged event's example section.

See Also