parse_spot_instrument

Function parse_spot_instrument 

Source
pub fn parse_spot_instrument(
    symbol: &BinanceSpotSymbol,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<InstrumentAny>
Expand description

Parses a Binance Spot symbol definition into a Nautilus CurrencyPair instrument.

ยงErrors

Returns an error if:

  • Required filter values are missing (PRICE_FILTER, LOT_SIZE).
  • Price or quantity values cannot be parsed.
  • The symbol is not actively trading.