pub struct MarketFields {
pub mid_open: Option<f64>,
pub high: Option<f64>,
pub offer: Option<f64>,
pub change: Option<f64>,
pub market_delay: Option<bool>,
pub low: Option<f64>,
pub bid: Option<f64>,
pub change_pct: Option<f64>,
pub market_state: Option<MarketState>,
pub update_time: Option<String>,
}Expand description
Fields containing market price and status information
Fields§
§mid_open: Option<f64>The mid-open price of the market
high: Option<f64>The highest price reached by the market in the current trading session
offer: Option<f64>The current offer (ask) price of the market
change: Option<f64>The absolute price change since the previous close
market_delay: Option<bool>Indicates if there is a delay in market data
low: Option<f64>The lowest price reached by the market in the current trading session
bid: Option<f64>The current bid price of the market
change_pct: Option<f64>The percentage price change since the previous close
market_state: Option<MarketState>The current state of the market (e.g., Tradeable, Closed, etc.)
update_time: Option<String>The timestamp of the last market update
Trait Implementations§
Source§impl Clone for MarketFields
impl Clone for MarketFields
Source§fn clone(&self) -> MarketFields
fn clone(&self) -> MarketFields
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 MarketFields
impl Debug for MarketFields
Source§impl Default for MarketFields
impl Default for MarketFields
Source§fn default() -> MarketFields
fn default() -> MarketFields
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarketFields
impl<'de> Deserialize<'de> for MarketFields
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 MarketFields
impl PartialEq for MarketFields
Source§impl Serialize for MarketFields
impl Serialize for MarketFields
impl StructuralPartialEq for MarketFields
Auto Trait Implementations§
impl Freeze for MarketFields
impl RefUnwindSafe for MarketFields
impl Send for MarketFields
impl Sync for MarketFields
impl Unpin for MarketFields
impl UnwindSafe for MarketFields
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> 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