mcdallas / wallstreet

Real time stock and option data.
MIT License
1.24k stars 197 forks source link

Numerous RuntimeWarning for internal procedures #22

Open Yachter opened 4 years ago

Yachter commented 4 years ago

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)/(sigma*sqrt(T))

2) 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.