CQG API 4.0 - Revised
DefPositionSubscriptionLevel Property
See Also  Send Feedback
CQGAPIConfig Interface : DefPositionSubscriptionLevel Property

Glossary Item Box

Description

Specifies the default position subscription level for accounts.

The default value is pslNoPositions.

Property type

Read-write property

Syntax

Visual Basic
Public Property DefPositionSubscriptionLevel As ePositionSubscriptionLevel

Return Type

Position subscription level represented as ePositionSubscriptionLevel

Remarks

When accounts are initially loaded or reloaded (See eAccountChangeType Enumeration), their position subscription levels are reset to default.

This property allows to set the default value for positions subscription level, i.e. in case accounts are reloaded their position subscription levels will be set to the desired value.

Other than defining the default value here, you can set position subscription levels for each account separately through PositionSubcriptionLevel Property.

For details on position subscription level see description of ePositionSubscriptionLevel Enumeration.

Example

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

See Also