pub struct StreamQuote {Show 22 fields
pub symbol: String,
pub name: Option<String>,
pub price: f64,
pub changes_percentage: Option<f64>,
pub change: Option<f64>,
pub day_low: Option<f64>,
pub day_high: Option<f64>,
pub year_low: Option<f64>,
pub year_high: Option<f64>,
pub market_cap: Option<f64>,
pub price_avg50: Option<f64>,
pub price_avg200: Option<f64>,
pub exchange: Option<String>,
pub volume: Option<f64>,
pub avg_volume: Option<f64>,
pub open: Option<f64>,
pub previous_close: Option<f64>,
pub eps: Option<f64>,
pub pe: Option<f64>,
pub earnings_announcement: Option<String>,
pub shares_outstanding: Option<f64>,
pub timestamp: u64,
}Expand description
A standard stream quote with required symbol, price, and timestamp.
Additional quote metadata depends on the asset and stream. These fields accept null or absence and are validated when supplied. Unrelated provider fields are ignored.
Fields§
§symbol: StringThe asset’s required nonempty symbol.
name: Option<String>The asset’s name, when supplied.
price: f64The current price.
changes_percentage: Option<f64>The price change as a percentage.
change: Option<f64>The signed price change.
day_low: Option<f64>The current day’s lowest price.
day_high: Option<f64>The current day’s highest price.
year_low: Option<f64>The past year’s lowest price.
year_high: Option<f64>The past year’s highest price.
market_cap: Option<f64>The market capitalization.
price_avg50: Option<f64>The 50-day average price.
price_avg200: Option<f64>The 200-day average price.
exchange: Option<String>The exchange identifier, when supplied.
volume: Option<f64>The traded volume; fractional quantities are preserved.
avg_volume: Option<f64>The average traded volume.
open: Option<f64>The opening price.
previous_close: Option<f64>The previous closing price.
eps: Option<f64>Earnings per share, when available.
pe: Option<f64>The price-to-earnings ratio, when available.
earnings_announcement: Option<String>The provider’s earnings announcement timestamp, when available.
Outstanding shares, when available.
timestamp: u64The provider timestamp, preserved without assuming a time unit.