mcdallas / wallstreet

Real time stock and option data.
MIT License
1.33k stars 201 forks source link

"No options listed for stock", but it exists in yahoo finance #38

Closed javioden closed 2 years ago

javioden commented 2 years ago

First of all, thank you so much for this amazing library. It is really useful and easy to use.

I have noticed a problem that happens from time to time, a LookUp error in "normal" stocks. For example, as of now (Dec 1st) if you try to search for OTIS options...

E1  No OTIS options on Dic 1st

Sometimes yahoo finance doesn´t have options data (it happens especially with options on indices like ^SPX), but this is not the case this time:

E1  But they exists in YF

Do you know why this happens?

Thank you again for your great work

mcdallas commented 2 years ago

hey @javioden, could you try Put(‘OTIS’).expirations and see if you get any results?

javioden commented 2 years ago

hey @mcdallas, sorry for the late response. it only happens from time to time, I have tried Put(‘OTIS’).expirations and everything seems to work fine now. If I encounter this error again I will try to search for its expirations and create a new issue Thanks again