black_scholes_73
module jetblack_options.european.black_scholes_73
Summary
Black-Scholes 1973.
Description
The original Black-Scholes option formula for an option on a non-dividend paying stock option.
function jetblack_options.european.black_scholes_73.charm
Parameters
is_call: boolReturns
float:function jetblack_options.european.black_scholes_73.delta
Parameters
is_call: boolReturns
float:function jetblack_options.european.black_scholes_73.gamma
Summary
Calculates option gamma
Parameters
S: floatReturns
float:function jetblack_options.european.black_scholes_73.ivol
Summary
Calculate the volatility of a Black-Scholes 73 option that is implied by
Description
the price.
Parameters
is_call: boolTrue for a call, false for a put.
The current asset price.
The option strike price
The time to maturity of the option in years.
The risk free rate.
The option price.
The maximum number of iterations before a price is returned. Defaults to 35.
The largest acceptable error. Defaults to 1e-8.
Returns
float: The implied volatility.function jetblack_options.european.black_scholes_73.make_numeric_greeks
Summary
Make a class to generate greeks numerically using finite difference methods.
Parameters
is_call: boolIf true the options is a call; otherwise it is a put.
Returns
NumericGreeks: A class which can generate Greeks using finite difference methods.function jetblack_options.european.black_scholes_73.price
Summary
Black-Scholes for a non-dividend paying stock.
Description
Parameters
is_call: boolTrue for a call, false for a put.
The asset price.
The strike price.
The time to expiry in years.
The risk free rate.
The asset volatility.
Returns
float: The price of the option.function jetblack_options.european.black_scholes_73.rho
Parameters
is_call: boolReturns
float:function jetblack_options.european.black_scholes_73.theta
Summary
Calculates option theta