Function greeks::vega
[−]
[src]
pub fn vega(s0: f64, x: f64, t: f64, r: f64, q: f64, sigma: f64) -> f64
Calculates the Vega of a given option
Vega measures the sensitivity to volatility. Vega is the derivative of the option value with respect to the volatility of the underlying asset.
Arguments
s0
- The underlying price of the optionx
- The strike price of the optiont
- time to expiration as a percentage of the yearr
- continuously compounded risk-free interest rateq
- continuously compounded divident yieldsigma
- volatility