Type Alias OrderBookSnapshot128

Source
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: InstrumentId

Instrument 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: u64

Order book sequence ID

§timestamp_event: u64

Unix timestamp (nanoseconds) - Order book published time (server side)

§timestamp_init: u64

Unix timestamp (nanoseconds) - Order book initialized time (client side)