CQG API 4.0 - Revised
Accounts Property
See Also  Send Feedback
CQGCEL Interface : Accounts Property

Glossary Item Box

Description

Returns the collection of accounts that belong to the current trader logon name.

Property type

Read-only property

Syntax

Visual Basic
Public Property Accounts As CQGAccounts

Return Type

CQGAccounts collection containing all accounts that belong to current trader in CQG System.

Remarks

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.

Example

See the usage of Accounts property in the AccountChanged event's example section.

See Also