Skip to main content

parse_order_book_details_instruments_with_status

Function parse_order_book_details_instruments_with_status 

Source
pub fn parse_order_book_details_instruments_with_status(
    registry: &MarketRegistry,
    perp_details: &[LighterPerpOrderBookDetail],
    spot_details: &[LighterSpotOrderBookDetail],
    ts_init: UnixNanos,
) -> Result<Vec<(InstrumentAny, LighterMarketStatus)>>
Expand description

Parses Lighter order book metadata into Nautilus instruments and market statuses.

ยงErrors

Returns an error if metadata is nonempty but no instrument definition can be converted.