Skip to main content

calculate_greeks

Function calculate_greeks 

Source
pub fn calculate_greeks(
    option_type: &OptionType,
    spot: f64,
    strike: f64,
    time_to_expiry: f64,
    risk_free_rate: f64,
    volatility: f64,
) -> (f64, f64, f64, f64, f64)