pub struct OptionGreeks {
pub delta: Option<f64>,
pub gamma: Option<f64>,
pub theta: Option<f64>,
pub vega: Option<f64>,
pub rho: Option<f64>,
}Expand description
Option Greeks for pricing and risk analysis.
Fields§
§delta: Option<f64>Delta - rate of change of option price with respect to underlying price.
gamma: Option<f64>Gamma - rate of change of delta with respect to underlying price.
theta: Option<f64>Theta - rate of change of option price with respect to time (time decay).
vega: Option<f64>Vega - rate of change of option price with respect to volatility.
rho: Option<f64>Rho - rate of change of option price with respect to interest 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 · 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 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<OptionGreeks, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionGreeks, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OptionGreeks
impl Serialize for OptionGreeks
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OptionGreeks
impl RefUnwindSafe for OptionGreeks
impl Send for OptionGreeks
impl Sync for OptionGreeks
impl Unpin 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