Type Alias OrderBook64

Source
pub type OrderBook64 = OrderBook<64>;
Expand description

An order book with a capacity of 64.

Aliased Type§

#[repr(align(64))]
pub struct OrderBook64 { pub symbol: SmartString<LazyCompact>, pub exchange_timestamp_ns: u64, pub system_timestamp_ns: u64, pub bids: SmallVec<[PriceLevel; 64]>, pub asks: SmallVec<[PriceLevel; 64]>, }

Fields§

§symbol: SmartString<LazyCompact>

The trading symbol.

§exchange_timestamp_ns: u64

Nanosecond precision from exchange.

§system_timestamp_ns: u64

Nanosecond precision local time.

§bids: SmallVec<[PriceLevel; 64]>

Must be initiated as sorted for binary search optimizations!

§asks: SmallVec<[PriceLevel; 64]>

Must be initiated as sorted for binary search optimizations!