CQG API 4.0 - Revised
OpenTrades Property
See Also  Send Feedback
CQGPosition Interface : OpenTrades Property

Glossary Item Box

Description

Returns the collection of currently open trades.

The availability of position open trades information is controlled by PositionDetailing setting of CQG API Configuration.

Property type

Read-only property

Syntax

Visual Basic
Public Property OpenTrades As CQGTrades

Return Type

CQGTrades collection containing position's open trades.

Nothing, if this information is not available.

Remarks

The sum of position's open trades' quantities gives the position's quantity.

The GroupID property of an open trade is 0.

Example

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

See Also