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§
Source§impl Clone for MarketQuote
impl Clone for MarketQuote
Source§fn clone(&self) -> MarketQuote
fn clone(&self) -> MarketQuote
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MarketQuote
impl Debug for MarketQuote
Source§impl<'de> Deserialize<'de> for MarketQuote
impl<'de> Deserialize<'de> for MarketQuote
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
Source§impl PartialEq for MarketQuote
impl PartialEq for MarketQuote
Source§impl Serialize for MarketQuote
impl Serialize for MarketQuote
impl StructuralPartialEq for MarketQuote
Auto Trait Implementations§
impl Freeze for MarketQuote
impl RefUnwindSafe for MarketQuote
impl Send for MarketQuote
impl Sync for MarketQuote
impl Unpin for MarketQuote
impl UnwindSafe for MarketQuote
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more