Type Alias MarketUpdate64

Source
pub type MarketUpdate64 = MarketUpdate<64, 32>;
Expand description

Type alias for a market update with 64 levels and 32 trades capacity.

Aliased Type§

pub struct MarketUpdate64 {
    pub timestamp_ns: u64,
    pub symbol: String,
    pub bid_prices: SmallVec<[Decimal; 64]>,
    pub bid_quantities: SmallVec<[Decimal; 64]>,
    pub ask_prices: SmallVec<[Decimal; 64]>,
    pub ask_quantities: SmallVec<[Decimal; 64]>,
    pub trades: SmallVec<[TradeUpdate; 32]>,
}

Fields§

§timestamp_ns: u64

Nanosecond timestamp of the update.

§symbol: String

The trading symbol.

§bid_prices: SmallVec<[Decimal; 64]>

A small vector of bid prices.

§bid_quantities: SmallVec<[Decimal; 64]>

A small vector of bid quantities.

§ask_prices: SmallVec<[Decimal; 64]>

A small vector of ask prices.

§ask_quantities: SmallVec<[Decimal; 64]>

A small vector of ask quantities.

§trades: SmallVec<[TradeUpdate; 32]>

A small vector of trades.