Visual Basic |
---|
Public Property PositionSubcriptionLevel As ePositionSubscriptionLevel |
For each account, the setting of this property controls:
- the content of the Positions collection,
- the AccountChanged events fired for this account
For details, see the description of ePositionSubscriptionLevel Enumeration.
On startup and accounts reload, this property is reset to the default value for all accounts.
The default value of position subscription level can be set by the DefPositionSubscriptionLevel property of CQG API Configuration.
User can change the position subscription level any time. When the value of this property is changed to pslNoPositions from another value, the positions are not removed from Positions collection.
Note: Changing the subscription level is an asynchronous process, which means that the results are not available immediately.
See the usage of CQGAccount properties in the AccountChanged event's example section.