Enums represent possible sets of values for a field.
Removed from order book at exchange.
Order has been either filled or cancelled.
Order has expired it’s time to live or trading session and been removed from order book.
Fully match against opposite order on order book at exchange.
Initial order when placed on the order book at exchange.
Order is open and waiting to be filled.
Order partially canceled at exchange.
Partially match against opposite order on order book at exchange.
Waiting to be removed from order book at exchange.
Initial order when instantiated.
Waiting to be replaced by another order on order book at exchange.
Order has been rejected by exchange and not place on order book.
Order has been replaced by another order on order book at exchange.
Order has been triggered at stop price.
The exchange returned a state which is not in the exchange’s API documentation. The state of the order cannot be confirmed.
Closed - the sell order has been accepted.
Closing - a sell order has been made but not yet completed.
Closing failure - the sell order did not succeed.
Opened - the buy order has been accepted.
Opening - a position has been created, a buy order has been made but not yet completed.
Opening failure - a position has been created, but the buy order did not succeed.
Long position is nothing but buying share and selling them later for more.
Short position is nothing but selling share and buying back later for less.