pub struct QuoteData {Show 14 fields
pub timestamp: i64,
pub symbol: Ustr,
pub bid: Option<f64>,
pub ask: Option<f64>,
pub bid_size: Option<f64>,
pub ask_size: Option<f64>,
pub last_price: Option<f64>,
pub volume: Option<f64>,
pub change: Option<f64>,
pub change_percent: Option<f64>,
pub open: Option<f64>,
pub high: Option<f64>,
pub low: Option<f64>,
pub prev_close: Option<f64>,
}Expand description
Real-time market quote.
Fields§
§timestamp: i64Seconds since Unix epoch (from the exchange).
symbol: Ustr§bid: Option<f64>§ask: Option<f64>§bid_size: Option<f64>§ask_size: Option<f64>§last_price: Option<f64>§volume: Option<f64>§change: Option<f64>§change_percent: Option<f64>§open: Option<f64>§high: Option<f64>§low: Option<f64>§prev_close: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QuoteData
impl<'de> Deserialize<'de> for QuoteData
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 QuoteData
Auto Trait Implementations§
impl Freeze for QuoteData
impl RefUnwindSafe for QuoteData
impl Send for QuoteData
impl Sync for QuoteData
impl Unpin for QuoteData
impl UnsafeUnpin for QuoteData
impl UnwindSafe for QuoteData
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