Skip to main content

order_book

Function order_book 

Source
pub fn order_book(
    bids: &[(Decimal, Decimal)],
    asks: &[(Decimal, Decimal)],
    ts_ms: i64,
    instrument: &InstrumentId,
    now: Instant,
) -> OrderBook
Expand description

A snapshot of the book from the REST answer.