pub fn parse_order_msg(
msg: &BitmexOrderMsg,
instrument: &InstrumentAny,
order_type_cache: &DashMap<ClientOrderId, OrderType>,
) -> Result<OrderStatusReport>
Expand description
Parse a BitMEX WebSocket order message into a Nautilus OrderStatusReport
.
§Panics
Panics if required fields are missing or invalid.
§References
https://www.bitmex.com/app/wsAPI#Order
§Errors
Returns an error if the time in force conversion fails.