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

Glossary Item Box

Description

Returns the trade's side.

Property type

Read-only property

Syntax

Visual Basic
Public Property Side As eOrderSide

Return Type

The trade'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 buy trade and osdSell in case of a sell.

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

Example

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

See Also