Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
ORDER_TYPE
Order direction constants, i.e. the values of the Type field in the Order structure and the Trade structure.
| Constant | Value | Meaning |
|---|---|---|
ORDER_TYPE_BUY | 0 | Buy order |
ORDER_TYPE_SELL | 1 | Sell order |
ORDER_TYPE_NONE | 2 | No direction; used only in the Trade structure, indicating that the exchange did not provide the trade direction |
In this sectionRead the whole section
| Name | Description |
| ORDER_TYPE_BUY | A buy order; the value is 0. |
| ORDER_TYPE_SELL | A sell order; the value is 1. |
| ORDER_TYPE_NONE | No direction; the value is 2. |