pub struct Quote {Show 17 fields
pub symbol: String,
pub price: f64,
pub name: Option<String>,
pub change_percentage: Option<f64>,
pub change: Option<f64>,
pub volume: Option<f64>,
pub day_low: Option<f64>,
pub day_high: Option<f64>,
pub year_high: Option<f64>,
pub year_low: Option<f64>,
pub market_cap: Option<f64>,
pub price_avg_50: Option<f64>,
pub price_avg_200: Option<f64>,
pub exchange: Option<String>,
pub open: Option<f64>,
pub previous_close: Option<f64>,
pub timestamp: Option<u64>,
}Expand description
A full quote from quote or batch-quote, including supported non-stock symbols.
Fields§
§symbol: String§price: f64§name: Option<String>§change_percentage: Option<f64>§change: Option<f64>§volume: Option<f64>§day_low: Option<f64>§day_high: Option<f64>§year_high: Option<f64>§year_low: Option<f64>§market_cap: Option<f64>§price_avg_50: Option<f64>§price_avg_200: Option<f64>§exchange: Option<String>§open: Option<f64>§previous_close: Option<f64>§timestamp: Option<u64>Unix seconds, unlike aftermarket timestamps which are milliseconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl Freeze for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnsafeUnpin for Quote
impl UnwindSafe for Quote
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more