CQG API 4.0 - Revised
eAccountSubscriptionLevel Enumeration
See Also  Send Feedback

Glossary Item Box

Description

Specifies event subscription levels for accounts.

Members

MemberValueDescription
aslAccountsAndUpdates2Accounts are obtained, fully refreshed and all account updates are fired as well, e.g. balance changes, currency changes etc.

Position updates are controlled by ePositionSubscriptionLevel property of each account.

If subscription level was set to aslAccountsOnly and then set to aslAccountsAndUpdates, an AccountChanged event will be fired with actAccountsReloaded type. Further account updates will be received via AccountChanged event of actAccountChanged type. For details of this event type see description of eAccountChangeType.actAccountChanged.

aslAccountsOnly1Accounts are obtained and fully refreshed once, but no account updates are received after that.

To update the collection in this case the user must set the subscription level to aslNone and back to aslAccountsOnly.

aslAccountUpdatesAndChildOrders4

The same as aslAccountUpdatesAndOrders subscription level with addition of child orders related fuctionality and events.

This works as a switch: if the level is less than aslAccountsUpdatesAndOrders then no orders related functionality is available via CQG API.

aslAccountUpdatesAndOrders3

The same as aslAccountsAndUpdates subscription level with addition of orders related functionality and events.

This works as a switch: if the level is less than aslAccountsUpdatesAndOrders then no orders related functionality is available via CQG API.

aslNone0No account information is provided.

This also works as a switch for CQG API 3.0 (and higher) functionality, i.e. if aslNone is set then only functionality of CQG API v.1.1 will be available.

This is the default value.

When initially set the CQGCEL.Accounts collection remains empty.

When this value is set after some other value then CQGCEL.Accounts collection will not be emptied, i.e. will remain in the same state as it was when setting to aslNone.

If the CQG Gateway connection is lost, after it is up again the CQGCEL.AccountSubscriptionLevel is reset to aslNone.

When the subscription level is changed from aslNone an AccountChanged event will be fired with actAccountsReloaded type.

Remarks

This is a general setting that covers all accounts.