Type Alias OrderBook128

Source
pub type OrderBook128 = OrderBook<128>;
Expand description

An order book with a capacity of 128.

Aliased Type§

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

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; 128]>

Must be initiated as sorted for binary search optimizations!

§asks: SmallVec<[PriceLevel; 128]>

Must be initiated as sorted for binary search optimizations!