pub struct Quote {
pub symbol: String,
pub last: String,
pub ask: String,
pub bid: String,
pub volume: String,
pub close: Option<String>,
pub high: Option<String>,
pub low: Option<String>,
pub open: Option<String>,
pub net_change: Option<String>,
pub net_change_pct: Option<String>,
pub trade_time: Option<String>,
}Expand description
Quote snapshot for a single symbol.
Returned by Client::get_quotes.
Fields§
§symbol: StringTicker symbol.
last: StringLast traded price.
ask: StringBest ask price.
bid: StringBest bid price.
volume: StringCumulative volume.
close: Option<String>Previous session close.
high: Option<String>Session high.
low: Option<String>Session low.
open: Option<String>Session open.
net_change: Option<String>Net change from previous close.
net_change_pct: Option<String>Net change as a percentage.
trade_time: Option<String>Time of the last trade.
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