pub struct BasicOptionData {Show 15 fields
pub strike_price: f64,
pub call_bid: Option<f64>,
pub call_ask: Option<f64>,
pub put_bid: Option<f64>,
pub put_ask: Option<f64>,
pub implied_volatility: (Option<f64>, Option<f64>),
pub delta_call: Option<f64>,
pub delta_put: Option<f64>,
pub gamma: Option<f64>,
pub volume: f64,
pub open_interest: f64,
pub expiration_date: Option<DateTime<Utc>>,
pub underlying_price: Option<f64>,
pub risk_free_rate: f64,
pub extra_fields: Option<Value>,
}Expand description
Comprehensive option data structure containing all relevant pricing and risk information
Fields§
§strike_price: f64Strike price of the option
call_bid: Option<f64>Best bid price for call option
call_ask: Option<f64>Best ask price for call option
put_bid: Option<f64>Best bid price for put option
put_ask: Option<f64>Best ask price for put option
implied_volatility: (Option<f64>, Option<f64>)Implied volatility for call and put options (call_iv, put_iv)
delta_call: Option<f64>Delta value for call option
delta_put: Option<f64>Delta value for put option
gamma: Option<f64>Gamma value (rate of change of delta)
volume: f64Total trading volume
open_interest: f64Total open interest
expiration_date: Option<DateTime<Utc>>Option expiration date
underlying_price: Option<f64>Current price of the underlying asset
risk_free_rate: f64Risk-free interest rate
extra_fields: Option<Value>Additional fields as JSON value
Trait Implementations§
Source§impl Clone for BasicOptionData
impl Clone for BasicOptionData
Source§fn clone(&self) -> BasicOptionData
fn clone(&self) -> BasicOptionData
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 BasicOptionData
impl Debug for BasicOptionData
Source§impl<'de> Deserialize<'de> for BasicOptionData
impl<'de> Deserialize<'de> for BasicOptionData
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 Display for BasicOptionData
impl Display for BasicOptionData
Auto Trait Implementations§
impl Freeze for BasicOptionData
impl RefUnwindSafe for BasicOptionData
impl Send for BasicOptionData
impl Sync for BasicOptionData
impl Unpin for BasicOptionData
impl UnwindSafe for BasicOptionData
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