Skip to main content

parse_order_status_report

Function parse_order_status_report 

Source
pub fn parse_order_status_report(
    uo: &UnmatchedOrder,
    instrument_id: InstrumentId,
    account_id: AccountId,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<OrderStatusReport>
Expand description

Parses a streaming UnmatchedOrder into a Nautilus [OrderStatusReport].

Resolves the Nautilus order status from the Betfair streaming status plus matched/cancelled quantities.

ยงErrors

Returns an error if price or quantity values cannot be converted.