This event is fired when a CQG Gateway environment change occurs.
Visual Basic |
---|
Public Event GWEnvironmentChanged( _ ByVal event_code As eGWEnvChangeCode, _ ByVal account_id As Long, _ ByVal phase_ As Long _ ) |
- event_code
Value Description eccBalanceChanged Previous close balance is changed.
eccManualStatementChanged Manual statement change.
eccNewStatement New statement.
eccPositionChanged Previous 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
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.
See the implementation of CQGCEL events handling in the AccountChanged event's example section.