pub type OrderBookSnapshot128 = OrderBookSnapshot<128>;Expand description
An order book snapshot with a capacity of 128.
Aliased Type§
#[repr(align(64))]pub struct OrderBookSnapshot128 {
pub instrument_id: InstrumentId,
pub bids: SmallVec<[PriceLevel; 128]>,
pub asks: SmallVec<[PriceLevel; 128]>,
pub sequence_id: u64,
pub timestamp_event: u64,
pub timestamp_init: u64,
}Fields§
§instrument_id: InstrumentIdInstrument identifier
bids: SmallVec<[PriceLevel; 128]>Top bid levels (sorted by price descending)
Uses SmallVec to avoid heap allocations for normal sized order books
asks: SmallVec<[PriceLevel; 128]>Top ask levels (sorted by price ascending)
Uses SmallVec to avoid heap allocations for normal sized order books
sequence_id: u64Order book sequence ID
timestamp_event: u64Unix timestamp (nanoseconds) - Order book published time (server side)
timestamp_init: u64Unix timestamp (nanoseconds) - Order book initialized time (client side)