Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
EXCHANGE
ORDER_STATE
ORDER_STATE_PENDING
ORDER_STATE_CLOSED
ORDER_STATE_CANCELED
ORDER_STATE_UNKNOWN
ORDER_TYPE
ORDER_CONDITION_TYPE
POSITION_DIRECTION
ORDER_OFFSET
PERIOD
LOG_TYPE
Conventions
Exchanges

Order status constants: the values of the Status field of the Order structure; compare against them to tell whether an order is done.

ConstantValueMeaning
ORDER_STATE_PENDING0The order is pending (open, possibly partially filled)
ORDER_STATE_CLOSED1The order is completed (fully filled)
ORDER_STATE_CANCELED2The order is canceled
ORDER_STATE_UNKNOWN3The order status is unknown (any other status)

In this sectionRead the whole section

NameDescription
ORDER_STATE_PENDINGThe order is pending (open, possibly partially filled); the value is 0.
ORDER_STATE_CLOSEDThe order is completed (fully filled); the value is 1.
ORDER_STATE_CANCELEDThe order is canceled; the value is 2.
ORDER_STATE_UNKNOWNThe order status is unknown (any other status); the value is 3.