Skip to main content

parse_crypto_futures_spread_instrument

Function parse_crypto_futures_spread_instrument 

Source
pub fn parse_crypto_futures_spread_instrument(
    definition: &BitmexInstrument,
    ts_init: UnixNanos,
) -> Result<InstrumentAny>
Expand description

Parse a BitMEX futures spread instrument into a Nautilus InstrumentAny.

§Errors

Returns an error if values are out of valid range or cannot be parsed.

§Panics

Panics if the constructed instrument fails validation.