Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
ORDER_STATE
Order status constants: the values of the Status field of the Order structure; compare against them to tell whether an order is done.
| Constant | Value | Meaning |
|---|---|---|
ORDER_STATE_PENDING | 0 | The order is pending (open, possibly partially filled) |
ORDER_STATE_CLOSED | 1 | The order is completed (fully filled) |
ORDER_STATE_CANCELED | 2 | The order is canceled |
ORDER_STATE_UNKNOWN | 3 | The order status is unknown (any other status) |
In this sectionRead the whole section
| Name | Description |
| ORDER_STATE_PENDING | The order is pending (open, possibly partially filled); the value is 0. |
| ORDER_STATE_CLOSED | The order is completed (fully filled); the value is 1. |
| ORDER_STATE_CANCELED | The order is canceled; the value is 2. |
| ORDER_STATE_UNKNOWN | The order status is unknown (any other status); the value is 3. |