Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py_vollib.black_scholes.implied_volatility doesn't seem to be working #1

Open
Jacyle opened this issue Dec 21, 2020 · 0 comments
Open

Comments

@Jacyle
Copy link

Jacyle commented Dec 21, 2020

When I iterate through an options chain; it's just returning the 'sigma'. If you change K, you keep getting 'sigma' back. Any idea what's causing this? I've run out of ideas.

S = 370.17
K = 300.0
r = 0.08
t = 0.019178082191780823
sigma = 0.33288248661681463
flag = 'c'

black_price = black_scholes(flag, S, K, t, r, sigma)
imp_vola = implied_volatility(black_price, S, K, t, r, flag)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant