pub struct OptionGreeks {
pub delta: f64,
pub gamma: f64,
pub vega: f64,
pub theta_annual: f64,
pub theta_daily: f64,
pub rho: f64,
}Expand description
First- and second-order price sensitivities (Greeks).
Fields§
§delta: f64Delta ($\partial V / \partial S$): Sensitivity to underlying spot price.
gamma: f64Gamma ($\partial^2 V / \partial S^2$): Rate of change of Delta.
vega: f64Vega ($\partial V / \partial \sigma$): Sensitivity to a 1.0 (100 percentage point) change in volatility.
theta_annual: f64Theta ($\partial V / \partial t$): Annualized rate of time decay (negative for standard long options).
theta_daily: f64Theta per calendar day (theta_annual / 365.0).
rho: f64Rho ($\partial V / \partial r$): Sensitivity to a 1.0 (100 percentage point) change in risk-free rate.
Trait Implementations§
Source§impl Clone for OptionGreeks
impl Clone for OptionGreeks
Source§fn clone(&self) -> OptionGreeks
fn clone(&self) -> OptionGreeks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionGreeks
Source§impl Debug for OptionGreeks
impl Debug for OptionGreeks
Source§impl<'de> Deserialize<'de> for OptionGreeks
impl<'de> Deserialize<'de> for OptionGreeks
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 OptionGreeks
impl PartialEq for OptionGreeks
Source§impl Serialize for OptionGreeks
impl Serialize for OptionGreeks
impl StructuralPartialEq for OptionGreeks
Auto Trait Implementations§
impl Freeze for OptionGreeks
impl RefUnwindSafe for OptionGreeks
impl Send for OptionGreeks
impl Sync for OptionGreeks
impl Unpin for OptionGreeks
impl UnsafeUnpin for OptionGreeks
impl UnwindSafe for OptionGreeks
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