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

Glossary Item Box

Description

Returns the trade's quantity.

Property type

Read-only property

Syntax

Visual Basic
Public Property Quantity As Long

Return Type

The quantity represented as Long.

Depending on UseOrderSide setting of CQG API Configuration the quantity can be signed or unsigned.

Remarks

If UseOrderSide is set to True, the quantity is always positive and the side is shown by the trade's Side property.

If UseOrderSide is set to False, the quantity is:

  • positive in case of a buy trade
  • negative in case of a sell trade.

Example

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

See Also