Skip to main content

parse_instrument

Function parse_instrument 

Source
pub fn parse_instrument(
    definition: &AxInstrument,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<InstrumentAny>
Expand description

Parses an Ax instrument into a Nautilus perpetual or dated futures contract.

ยงErrors

Returns an error if any required field cannot be parsed or is invalid.