Skip to main content

parse_ws_order_status_report

Function parse_ws_order_status_report 

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

Parses a WebSocket account order payload into an [OrderStatusReport].

ยงErrors

Returns an error if price or quantity fields cannot be parsed or timestamps are invalid.