Skip to main content

map_ws_order_message

Function map_ws_order_message 

pub fn map_ws_order_message(msg: &OrderMessage, now: Instant) -> Option<Event>
Expand description

Maps a message of the order events WebSocket to an Event::Order.

The client order id is chosen by message_cid. None when neither id is a UUID or the message has no report. Fills are mapped separately by crate::map::execution::map_ws_execution.