parse_fill_report

Function parse_fill_report 

Source
pub fn parse_fill_report(
    trade_id: &str,
    trade: &SpotTrade,
    instrument: &InstrumentAny,
    account_id: AccountId,
    ts_init: UnixNanos,
) -> Result<FillReport>
Expand description

Parses a Kraken spot trade into a Nautilus FillReport.

ยงErrors

Returns an error if:

  • Trade ID, quantities, or prices cannot be parsed.