pub struct OptionContract {Show 20 fields
pub symbol: String,
pub underlying_symbol: String,
pub strike_price: f64,
pub expiration_date: DateTime<Utc>,
pub option_type: OptionType,
pub last_price: f64,
pub change: f64,
pub change_percent: f64,
pub volume: u64,
pub open_interest: u64,
pub bid_price: f64,
pub bid_size: u64,
pub ask_price: f64,
pub ask_size: u64,
pub implied_volatility: f64,
pub delta: f64,
pub gamma: f64,
pub theta: f64,
pub vega: f64,
pub rho: f64,
}Expand description
Option contract information.
Fields§
§symbol: StringSymbol of the option contract
underlying_symbol: StringUnderlying symbol
strike_price: f64Strike price
expiration_date: DateTime<Utc>Expiration date
option_type: OptionTypeOption type (call/put)
last_price: f64Last trade price
change: f64Change in price
change_percent: f64Percentage change in price
volume: u64Volume of contracts traded
open_interest: u64Open interest
bid_price: f64Bid price
bid_size: u64Bid size
ask_price: f64Ask price
ask_size: u64Ask size
implied_volatility: f64Implied volatility
delta: f64Delta
gamma: f64Gamma
theta: f64Theta
vega: f64Vega
rho: f64Rho
Trait Implementations§
Source§impl Clone for OptionContract
impl Clone for OptionContract
Source§fn clone(&self) -> OptionContract
fn clone(&self) -> OptionContract
Returns a copy 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