Returns the collection of accounts that belong to the current trader logon name.
Visual Basic |
---|
Public Property Accounts As CQGAccounts |
CQGAccounts collection containing all accounts that belong to current trader in CQG System.
The collection remains empty while the AccountSubscriptionLevel property is set to aslNone, which is the default. However if aslNone is set back after another value (see AccountSubscriptionLevel for details), the collection will not be emptied. It will remain as it was before this setting.
The number of items in the collection cannot be changed on the fly. Even if a change has occurred in the CQG System, it will be reflected in CQG API only when an AccountChanged event is fired with actAccountsReloaded change type, i.e. only upon Gateway relogon.
See the usage of Accounts property in the AccountChanged event's example section.