wallstreet icon indicating copy to clipboard operation
wallstreet copied to clipboard

Numerous RuntimeWarning for internal procedures

Open Yachter opened this issue 5 years ago • 0 comments

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.

Yachter avatar Jan 24 '20 08:01 Yachter