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

Glossary Item Box

Description

Returns the collection of available positions for the current account.

Property type

Read-only property

Syntax

Visual Basic
Public Property Positions As CQGPositions

Return Type

CQGPositions collection containing current positions of the account

Remarks

The content of this collection depends on the account's PositionSubcriptionLevel property setting. See remarks for details.

If the subscription level is configured to receive the positions updates, then a new item is added to the collection each time an account obtains new position.

The liquidated positions are not removed from the collection until the end of the trading day. To distinguish the liquidated positions check their Quantity Property. It will be 0 in that case.

Example

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

See Also