Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
EXCHANGE
ORDER_STATE
ORDER_TYPE
ORDER_TYPE_BUY
ORDER_TYPE_SELL
ORDER_TYPE_NONE
ORDER_CONDITION_TYPE
POSITION_DIRECTION
ORDER_OFFSET
PERIOD
LOG_TYPE
Conventions
Exchanges

Order direction constants, i.e. the values of the Type field in the Order structure and the Trade structure.

ConstantValueMeaning
ORDER_TYPE_BUY0Buy order
ORDER_TYPE_SELL1Sell order
ORDER_TYPE_NONE2No direction; used only in the Trade structure, indicating that the exchange did not provide the trade direction

In this sectionRead the whole section

NameDescription
ORDER_TYPE_BUYA buy order; the value is 0.
ORDER_TYPE_SELLA sell order; the value is 1.
ORDER_TYPE_NONENo direction; the value is 2.