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

Glossary Item Box

Description

Returns the position's side, basing on its open trades.

Property type

Read-only property

Syntax

Visual Basic
Public Property Side As eOrderSide

Return Type

The position's side represented as eOrderSide.

Depending on UseOrderSide setting of CQG API Configuration the side can be undefined.

Remarks

If UseOrderSide is set to True, the property value is osdBuy in case of long position and osdSell in case of short one.

If UseOrderSide is set to False, the property value is osdUndefined and the side is reflected by position's quantity sign.

Example

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

See Also