bourse.core.StepEnv.order_status(order_id: int) int

Get the status of an order

Parameters:
order_id: int

Id of the order to query.

Returns:

int – Status of the order as an integer where:

  • 0 = New Order has not been placed on the market

  • 1 = Active Order is on the market

  • 2 = Filled Order has been filled

  • 3 = Cancelled Order has been cancelled

  • 4 = Rejected Order has been rejected (e.g. a market order in a no-trade period)