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

Glossary Item Box

Description

Gets/sets the account subscription level.

Property type

Read-write property

Syntax

Visual Basic
Public Property AccountSubscriptionLevel As eAccountSubscriptionLevel

Return Type

Current subscription level represented as eAccountSubscriptionLevel.

Remarks

This property controls the account data delivery mode.

If the user does not need data given by CQG API in v.3.0 and higher, he/she can turn off that functionality by setting this property to aslNone.

Note: This property setting will succeed only after the user is logged on to the CQG Gateway in CQGIC and a corresponding GWConnectionStatusChanged with csConnectionUp event is received in CQG API.

See eAccountSubscriptionLevel Enumeration for details.

Note: If the user tries to change this property to something other than 'aslNone' while the connection is down, a corresponding DataError event will be fired.


In order to use order functionality the AccountSubscriptionLevel property of CQGCEL should be set to aslAccountUpdatesAndOrders

Example

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

See Also