pub struct Quote {
pub symbol: String,
pub symbol_id: u64,
pub bid_price: Option<f64>,
pub ask_price: Option<f64>,
pub last_trade_price: Option<f64>,
pub volume: Option<u64>,
pub open_price: Option<f64>,
pub high_price: Option<f64>,
pub low_price: Option<f64>,
}Expand description
Real-time level 1 quote for an equity symbol.
Fields§
§symbol: StringTicker symbol.
symbol_id: u64Questrade internal symbol ID.
bid_price: Option<f64>Best bid price; None if no bid is available.
ask_price: Option<f64>Best ask price; None if no ask is available.
last_trade_price: Option<f64>Last trade price; None outside trading hours or on no prints.
volume: Option<u64>Total session volume in shares.
open_price: Option<f64>Session open price.
high_price: Option<f64>Session high price.
low_price: Option<f64>Session low price.
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