Skip to main content

parse_order_status_report

Function parse_order_status_report 

Source
pub fn parse_order_status_report(
    order_id: &str,
    order: &SpotOrder,
    instrument: &InstrumentAny,
    account_id: AccountId,
    ts_init: UnixNanos,
) -> Result<OrderStatusReport>
Expand description

Parses a Kraken spot order into a Nautilus OrderStatusReport.

ยงErrors

Returns an error if:

  • Order ID, quantities, or prices cannot be parsed.
  • Order status mapping fails.