Skip to main content

OptionGreeks

Trait OptionGreeks 

Source
pub trait OptionGreeks {
Show 17 methods // Provided methods fn delta<T: Option>(&self, option: &T) -> f64 { ... } fn vega<T: Option>(&self, option: &T) -> f64 { ... } fn theta<T: Option>(&self, option: &T) -> f64 { ... } fn rho<T: Option>(&self, option: &T) -> f64 { ... } fn lambda<T: Option>(&self, option: &T) -> f64 { ... } fn epsilon<T: Option>(&self, option: &T) -> f64 { ... } fn gamma<T: Option>(&self, option: &T) -> f64 { ... } fn vanna<T: Option>(&self, option: &T) -> f64 { ... } fn charm<T: Option>(&self, option: &T) -> f64 { ... } fn vomma<T: Option>(&self, option: &T) -> f64 { ... } fn veta<T: Option>(&self, option: &T) -> f64 { ... } fn vera<T: Option>(&self, option: &T) -> f64 { ... } fn speed<T: Option>(&self, option: &T) -> f64 { ... } fn zomma<T: Option>(&self, option: &T) -> f64 { ... } fn color<T: Option>(&self, option: &T) -> f64 { ... } fn ultima<T: Option>(&self, option: &T) -> f64 { ... } fn parmicharma<T: Option>(&self, option: &T) -> f64 { ... }
}
Expand description

Trait for calculating the Greeks of an option.

Provided Methods§

Source

fn delta<T: Option>(&self, option: &T) -> f64

Delta measures the rate of change of the option price with respect to changes in the price of the underlying asset.

Source

fn vega<T: Option>(&self, option: &T) -> f64

Vega measures the rate of change of the option price with respect to changes in the volatility of the underlying asset.

Source

fn theta<T: Option>(&self, option: &T) -> f64

Theta measures the rate of change of the option price with respect to changes in time to maturity.

Source

fn rho<T: Option>(&self, option: &T) -> f64

Rho measures the rate of change of the option price with respect to changes in the risk-free interest rate.

Source

fn lambda<T: Option>(&self, option: &T) -> f64

Lambda measures the rate of change of the option delta with respect to changes in the risk-free interest rate.

Source

fn epsilon<T: Option>(&self, option: &T) -> f64

Epsilon measures the rate of change of the option delta with respect to changes in the dividend yield.

Source

fn gamma<T: Option>(&self, option: &T) -> f64

Gamma measures the rate of change of the option delta with respect to changes in the price of the underlying asset.

Source

fn vanna<T: Option>(&self, option: &T) -> f64

Vanna measures the rate of change of the option delta with respect to changes in the volatility of the underlying asset.

Source

fn charm<T: Option>(&self, option: &T) -> f64

Charm measures the rate of change of the option delta with respect to changes in time to maturity.

Source

fn vomma<T: Option>(&self, option: &T) -> f64

Vomma measures the rate of change of the option vega with respect to changes in the volatility of the underlying asset.

Source

fn veta<T: Option>(&self, option: &T) -> f64

Veta measures the rate of change of the option vega with respect to changes in time to maturity.

Source

fn vera<T: Option>(&self, option: &T) -> f64

Vera measures the rate of change of the option gamma with respect to changes in the volatility of the underlying asset.

Source

fn speed<T: Option>(&self, option: &T) -> f64

Speed measures the rate of change of the option gamma with respect to changes in the price of the underlying asset.

Source

fn zomma<T: Option>(&self, option: &T) -> f64

Zomma measures the rate of change of the option gamma with respect to changes in the volatility of the underlying asset.

Source

fn color<T: Option>(&self, option: &T) -> f64

Color measures the rate of change of the option gamma with respect to changes in time to maturity.

Source

fn ultima<T: Option>(&self, option: &T) -> f64

Ultima measures the rate of change of the option vomma with respect to changes in the volatility of the underlying asset.

Source

fn parmicharma<T: Option>(&self, option: &T) -> f64

Parmicharma measures the rate of change of charm over the passage of time.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§