pub struct Quote {Show 19 fields
pub symbol: String,
pub last_price: f64,
pub change: f64,
pub change_percent: f64,
pub volume: u64,
pub average_volume: u64,
pub bid_price: f64,
pub bid_size: u64,
pub ask_price: f64,
pub ask_size: u64,
pub high: f64,
pub low: f64,
pub open: f64,
pub prev_close: f64,
pub fifty_two_week_high: f64,
pub fifty_two_week_low: f64,
pub market_cap: Option<f64>,
pub pe_ratio: Option<f64>,
pub timestamp: DateTime<Utc>,
}Expand description
Real-time quote information.
Fields§
§symbol: StringSymbol of the security
last_price: f64Last trade price
change: f64Change in price
change_percent: f64Percentage change in price
volume: u64Volume of shares traded
average_volume: u64Average volume
bid_price: f64Bid price
bid_size: u64Bid size
ask_price: f64Ask price
ask_size: u64Ask size
high: f64Day’s high price
low: f64Day’s low price
open: f64Opening price
prev_close: f64Previous close price
fifty_two_week_high: f6452-week high price
fifty_two_week_low: f6452-week low price
market_cap: Option<f64>Market cap
pe_ratio: Option<f64>Price-to-earnings ratio
timestamp: DateTime<Utc>Timestamp of the quote
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
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