Quantitative Risk Management in Python
Jamsheed Shorish
Computational Economist

 


 

black_scholes(): source code link available in the exercisesblack_scholes()option_type ('call' or 'put')
S = 70; X = 80; T = 0.5; r = 0.02; sigma = 0.2option_value = black_scholes(S, X, T, r, sigma, option_type = "put")print(option_value)
10.31222171237868
  bs_delta(): computes the option deltaQuantitative Risk Management in Python