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

Numerous RuntimeWarning for internal procedures #22

Open
Yachter opened this issue Jan 24, 2020 · 0 comments
Open

Numerous RuntimeWarning for internal procedures #22

Yachter opened this issue Jan 24, 2020 · 0 comments

Comments

@Yachter
Copy link

Yachter commented Jan 24, 2020

Hello!

  1. In most of my cases by calling wallstreet_obj.delta() causes this warning:

C:\Program Files\Python38\lib\site-packages\wallstreet\blackandscholes.py:58: RuntimeWarning: divide by zero encountered in double_scalars
d1 = (log(S/K) + (r - q + (sigma**2)/2)T)/(sigmasqrt(T))

  1. also there is another annoying warning for this line:

wallstreet_obj.set_strike(float(str))

d:\Program Files\Python38\lib\site-packages\scipy\optimize\minpack.py:162: RuntimeWarning: The iteration is not making good progress, as measured by the
improvement from the last ten iterations.

Please check it out.

Regards.

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