-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Hi, thanks for the great upload. Do you know why I get an error ?
Thanks
NameError Traceback (most recent call last)
in
1 ## calculate the call / put option price and the greeks of the call / put option
2 r = r/100; sigma = sigma/100;
----> 3 price_and_greeks = {'Call' : [bs_call(S,K,T,r,sigma), call_delta(S,K,T,r,sigma), call_gamma(S,K,T,r,sigma),call_vega(S,K,T,r,sigma), call_rho(S,K,T,r,sigma), call_theta(S,K,T,r,sigma)],
4 'Put' : [bs_put(S,K,T,r,sigma), put_delta(S,K,T,r,sigma), put_gamma(S,K,T,r,sigma),put_vega(S,K,T,r,sigma), put_rho(S,K,T,r,sigma), put_theta(S,K,T,r,sigma)]}
5 price_and_greeks_frame = DataFrame(price_and_greeks, columns=['Call','Put'], index=['Price', 'delta', 'gamma','vega','rho','theta'])
NameError: name 'bs_call' is not defined