CQG API 4.0 - Revised
PositionSubcriptionLevel Property
See Also  Send Feedback
CQGAccount Interface : PositionSubcriptionLevel Property

Glossary Item Box

Description

Gets/sets the position subscription level for the current account.

Property type

Read-write property

Syntax

Visual Basic
Public Property PositionSubcriptionLevel As ePositionSubscriptionLevel

Return Type

Current subscription level represented as ePositionSubscriptionLevel

Remarks

For each account, the setting of this property controls:

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.

Example

See the usage of CQGAccount properties in the AccountChanged event's example section.

See Also