#[non_exhaustive]pub struct OptionQuote {Show 17 fields
pub symbol: String,
pub expiry: NaiveDate,
pub strike: f64,
pub kind: OptionKind,
pub multiplier: Option<f64>,
pub time: DateTime<Utc>,
pub bid: Option<f64>,
pub ask: Option<f64>,
pub last: Option<f64>,
pub volume: Option<f64>,
pub open_interest: Option<f64>,
pub implied_volatility: Option<f64>,
pub delta: Option<f64>,
pub gamma: Option<f64>,
pub theta: Option<f64>,
pub vega: Option<f64>,
pub underlying_price: Option<f64>,
}Expand description
One listed contract’s observation. Unknown values stay None, including Greeks;
consumers must not substitute zero. Prices use the underlying’s price units.
Greeks describe one unit of the underlying, without the contract multiplier applied.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: StringContract symbol as the feed knows it, distinct from the underlying symbol.
expiry: NaiveDateContract expiry date.
strike: f64Positive, finite strike in underlying price units.
kind: OptionKindCall or put.
multiplier: Option<f64>Positive, finite underlying units per contract, or unknown.
time: DateTime<Utc>UTC observation time of these values.
bid: Option<f64>Nonnegative, finite bid price, or unknown.
ask: Option<f64>Nonnegative, finite ask price, or unknown.
last: Option<f64>Nonnegative, finite last traded price, or unknown.
volume: Option<f64>Nonnegative, finite session volume in contracts, or unknown.
open_interest: Option<f64>Nonnegative, finite open interest in contracts, or unknown.
implied_volatility: Option<f64>Nonnegative, finite implied volatility as a fraction: 0.20 means 20%, or unknown.
delta: Option<f64>Finite delta for one unit of the underlying, or unknown.
gamma: Option<f64>Finite gamma for one unit of the underlying per one unit of underlying price, or unknown.
theta: Option<f64>Finite theta per calendar day for one unit of the underlying, or unknown.
vega: Option<f64>Finite vega per volatility point (one percentage point) for one unit of the underlying, or unknown.
underlying_price: Option<f64>Nonnegative, finite underlying price used to compute these values, or unknown.
Implementations§
Trait Implementations§
Source§impl Clone for OptionQuote
impl Clone for OptionQuote
Source§fn clone(&self) -> OptionQuote
fn clone(&self) -> OptionQuote
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptionQuote
impl Debug for OptionQuote
Source§impl PartialEq for OptionQuote
impl PartialEq for OptionQuote
impl StructuralPartialEq for OptionQuote
Auto Trait Implementations§
impl Freeze for OptionQuote
impl RefUnwindSafe for OptionQuote
impl Send for OptionQuote
impl Sync for OptionQuote
impl Unpin for OptionQuote
impl UnsafeUnpin for OptionQuote
impl UnwindSafe for OptionQuote
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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