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

Glossary Item Box

Description

Returns the collection of currently matched trades.

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

Property type

Read-only property

Syntax

Visual Basic
Public Property MatchedTrades As CQGTrades

Return Type

CQGTrades collection containing position's matched trades.

Nothing, if this information is not available.

Remarks

Position's trades are considered matched if the sum of their signed quantities is 0.

The trades which are matched together have equal GroupID property.

Note: Matched trades are kept in this collection until the end of the trading day. Upon the start of new trading day position does not have any matched trade.

Example

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

See Also