Function greeks::euro_put [] [src]

pub fn euro_put(s0: f64, x: f64, t: f64, r: f64, q: f64, sigma: f64) -> f64

Evaluate the price of a European put option on an underlying which does not pay dividents before expiry of the option using the Black-Scholes model

Arguments

  • s0 - The underlying price of the option
  • x - The strike price of the option
  • t - time to expiration as a percentage of the year
  • r - continuously compounded risk-free interest rate
  • q - continuously compounded divident yield
  • sigma - volatility