Skip to main content

parse_ws_order_status_report

Function parse_ws_order_status_report 

Source
pub fn parse_ws_order_status_report(
    order: &WsOrderData,
    instrument: &InstrumentAny,
    account_id: AccountId,
    ts_init: UnixNanos,
) -> Result<OrderStatusReport>
Expand description

Parses a WebSocket order update message into an [OrderStatusReport].

This converts Hyperliquid order data from WebSocket into Nautilus order status reports. Handles both regular and conditional orders (stop/limit-if-touched).