Skip to main content

parse_order_msg_vec

Function parse_order_msg_vec 

Source
pub fn parse_order_msg_vec(
    data: &[OKXOrderMsg],
    account_id: AccountId,
    instruments: &AHashMap<Ustr, InstrumentAny>,
    fee_cache: &mut FeeCache,
    filled_qty_cache: &mut FilledQtyCache,
    ts_init: UnixNanos,
) -> Result<Vec<ExecutionReport>>
Expand description

Parses vector of OKX order messages into Nautilus execution reports.

ยงErrors

Returns an error if any contained order messages cannot be parsed.