CQG API 4.0 - Revised
eOrderSide Enumeration
See Also  Send Feedback

Glossary Item Box

Description

Identifies the order side notion in terms of buy and sell.

Members

MemberValueDescription
osdBuy1Side properties return this value if CQGAPIConfig.UseOrderSide is set to True.

Depending on the owner, osdBuy value is returned in case of:

  • the object is a CQGTrade referring to a buy trade
  • the object is a CQGPosition referring to a long position.

  • the object is a CQGOrder referring to an order of buy type.
  • the object is a CQGFill referring to a fill of buy type.
osdSell2Side properties return this value if CQGAPIConfig.UseOrderSide is set to True.

Depending on the owner, osdSell value is returned in case of:

  • the object is a CQGTrade referring to a sell trade
  • the object is a CQGPosition referring to a short position.

  • the object is a CQGOrder referring to an order of sell type.
  • the object is a CQGFill referring to a fill of sell type.
osdUndefined0Side properties return this value if CQGAPIConfig.UseOrderSide is set to False.

Remarks

The preferred method can be set through the CQGAPIConfig.UseOrderSide property.

See Also