#[non_exhaustive]pub struct MarketQuote {Show 13 fields
pub raw_symbol: SymbolId,
pub symbol_name: Option<String>,
pub last_price: Option<Decimal>,
pub best_bid: Option<Decimal>,
pub best_ask: Option<Decimal>,
pub change: Option<Decimal>,
pub change_percent: Option<Decimal>,
pub open: Option<Decimal>,
pub high: Option<Decimal>,
pub low: Option<Decimal>,
pub volume: Option<i64>,
pub last_updated: Timestamp,
pub timestamp: Option<Timestamp>,
}Expand description
Sparse quote update from the market hub.
The provider may send only the fields that changed. Callers that need a
consolidated snapshot must merge updates by symbol and preserve None as
unavailable data rather than substituting a zero price or volume.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.raw_symbol: SymbolIdProvider symbol identifier.
symbol_name: Option<String>Human-readable symbol name, when supplied.
last_price: Option<Decimal>Last trade price, when supplied by this update.
best_bid: Option<Decimal>Best bid price, when supplied by this update.
best_ask: Option<Decimal>Best ask price, when supplied by this update.
change: Option<Decimal>Session price change, when supplied by this update.
change_percent: Option<Decimal>Session percent change, when supplied by this update.
open: Option<Decimal>Session open, when supplied by this update.
high: Option<Decimal>Session high, when supplied by this update.
low: Option<Decimal>Session low, when supplied by this update.
volume: Option<i64>Session cumulative volume, when supplied by this update.
last_updated: TimestampProvider last-updated timestamp.
timestamp: Option<Timestamp>Event timestamp, when supplied separately from Self::last_updated.
Trait Implementations§
Source§impl Clone for MarketQuote
impl Clone for MarketQuote
Source§fn clone(&self) -> MarketQuote
fn clone(&self) -> MarketQuote
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more