pub struct OptionContract {Show 14 fields
pub contract_symbol: String,
pub last_trade_date: DateTime<Utc>,
pub strike: f64,
pub last_price: f64,
pub bid: f64,
pub ask: f64,
pub change: f64,
pub percent_change: f64,
pub volume: Option<u64>,
pub open_interest: Option<u64>,
pub implied_volatility: f64,
pub in_the_money: bool,
pub contract_size: String,
pub currency: String,
}Expand description
Represents a single option contract
Fields§
§contract_symbol: String§last_trade_date: DateTime<Utc>§strike: f64§last_price: f64§bid: f64§ask: f64§change: f64§percent_change: f64§volume: Option<u64>§open_interest: Option<u64>§implied_volatility: f64§in_the_money: bool§contract_size: String§currency: StringTrait Implementations§
Source§impl Clone for OptionContract
impl Clone for OptionContract
Source§fn clone(&self) -> OptionContract
fn clone(&self) -> OptionContract
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 OptionContract
impl Debug for OptionContract
Source§impl<'de> Deserialize<'de> for OptionContract
impl<'de> Deserialize<'de> for OptionContract
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 OptionContract
impl RefUnwindSafe for OptionContract
impl Send for OptionContract
impl Sync for OptionContract
impl Unpin for OptionContract
impl UnwindSafe for OptionContract
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