Skip to main content

parse_order_book

Function parse_order_book 

Source
pub fn parse_order_book(
    book: &Book,
    instrument: &InstrumentAny,
) -> Result<OrderBook>
Expand description

Converts a current order book into an L2 market-by-price book stamped with time_exchange.

ยงErrors

Returns an error if a level is finer than the instrument precision or the timestamp is invalid; a single invalid level rejects the whole snapshot.