parse_ws_fill_report

Function parse_ws_fill_report 

Source
pub fn parse_ws_fill_report(
    execution: &BybitWsAccountExecution,
    account_id: AccountId,
    instrument: &InstrumentAny,
    ts_init: UnixNanos,
) -> Result<FillReport>
Expand description

Parses a WebSocket account execution payload into a FillReport.

ยงErrors

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