bourse.data_processing.orders_to_dataframe(order_history: list[tuple]) DataFrame

Convert order data to a Pandas dataframe

Converts order data returned from

into a Pandas dataframe.

Parameters:
order_history: list[tuple]

List of order data

Returns:

pandas.DataFrame – Pandas dataframe with columns:

  • side: Side the order was placed.

  • status: Status of the order.

  • arr_time: Arrival time of the order.

  • end_time: End time of the order.

  • vol: Remaining volume of the order.

  • start_vol: Original volume of the order.

  • price: Price of the order (market orders will be listed as 0 or 2 32 dependent on side).

  • trader_id: Id of the agent that placed the order.

  • order_id: Id of the order.

Notes

Numerical values are stored as unsigned types.