Struct questrade::MarketQuote
source · [−]pub struct MarketQuote {Show 17 fields
pub symbol: String,
pub symbol_id: u32,
pub tier: Option<String>,
pub bid_price: Option<Number>,
pub bid_size: u32,
pub ask_price: Option<Number>,
pub ask_size: u32,
pub last_trade_price_tr_hrs: Number,
pub last_trade_price: Number,
pub last_trade_size: u32,
pub last_trade_tick: TickType,
pub volume: u32,
pub open_price: Number,
pub high_price: Number,
pub low_price: Number,
pub delay: bool,
pub is_halted: bool,
}
Expand description
Spot quote for a certain Equity
Fields
symbol: String
Symbol name following Questrade’s symbology.
symbol_id: u32
Internal symbol identifier.
tier: Option<String>
Market tier.
bid_price: Option<Number>
Bid price.
bid_size: u32
Bid quantity.
ask_price: Option<Number>
Ask price.
ask_size: u32
Ask quantity.
last_trade_price_tr_hrs: Number
Price of the last trade during regular trade hours. The closing price.
last_trade_price: Number
Price of the last trade.
May include after-hours trading.
last_trade_size: u32
Quantity of the last trade.
last_trade_tick: TickType
Trade direction.
volume: u32
Daily trading volume
open_price: Number
Opening trade price.
high_price: Number
Daily high price.
low_price: Number
Daily low price.
delay: bool
Whether a quote is delayed or real-time.
If true
then the quote is delayed 15 minutes
is_halted: bool
Whether trading in the symbol is currently halted.
Trait Implementations
sourceimpl Clone for MarketQuote
impl Clone for MarketQuote
sourcefn clone(&self) -> MarketQuote
fn clone(&self) -> MarketQuote
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MarketQuote
impl Debug for MarketQuote
sourceimpl<'de> Deserialize<'de> for MarketQuote
impl<'de> Deserialize<'de> for MarketQuote
sourcefn 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
sourceimpl PartialEq<MarketQuote> for MarketQuote
impl PartialEq<MarketQuote> for MarketQuote
sourcefn eq(&self, other: &MarketQuote) -> bool
fn eq(&self, other: &MarketQuote) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for MarketQuote
impl Serialize for MarketQuote
impl StructuralPartialEq for MarketQuote
Auto Trait Implementations
impl RefUnwindSafe for MarketQuote
impl Send for MarketQuote
impl Sync for MarketQuote
impl Unpin for MarketQuote
impl UnwindSafe for MarketQuote
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more