-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Yfinance Intermittently working #1111
Comments
Did you try 0.1.74 or older? |
Also had this bug after building a new venv - spent ages before dropping back to 0.1.74 which works fine. |
We think we know why (related to #1076) and plan a release very soon. |
I tried pip install yfinance==0.1.7.4 and still got the same issue. |
Awesome, thank you for the update. |
Oh, if you have same problem with 0.1.74 or older then no, that needs investigation. What version was on your Mac? |
Any blacklisting is very temporary, so rolling back to 0.1.74 should have eventually restored normal behaviour. For 0.1.75 and later, a release went out yesterday that should resolve problem. |
Built both the yf v0.1.83 and v0.1.84 from the tar.gz files released yesterday and still having same issues unfortunately. |
Ok thanks for feedback on 0.1.84, but did rolling back to 0.1.74 solve? Does the What is the actual loop you are trying to run? What happens if you run in command line shell instead of Jupyter? |
Curious that this only started with Windows, but the typical cause of these errors is spamming Yahoo with 100s requests/day - are you? If only running 1-2 times/day then unlikely to be Yahoo, which implies a Windows problem. The solution to rate limiting is stop spamming Yahoo for data you could cache locally. Caching solutions:
|
That last error looks like a Windows networking issue. Maybe start with Googling 10060 error code |
If you don't mind, I'll tag this issue as "Windows" and close. I know Tor isn't ideal but I don't see what yfinance can do. |
That sounds good, thanks for your help! |
I have used yfinance for a while using a very old mac and haven't had any problems. I recently upgraded my computer to Windows 11 and am trying to run basic yfinance functions like yf.download in jupyter notebook on a chrome browser and I keep gettting the error message "No data found for this date range, symbol may be delisted" as well as error 10060. I have tried downgrading to older library versions and using the "pip install yfinance --upgrade --no-cache-dir" recommended fix but I am still getting this problem. The workaround I came up with is to keep retrying the yf.download and sleeping for a couple seconds if it fails. It seems to eventually download after around 10 tries or so but this doesn't seem to be the most elegant solution. I have tried changing my firewall settings and it doesn't seem like my computer is blocking anything. I am pretty stumped, if you have any suggestions I would really appreciate it!
The text was updated successfully, but these errors were encountered: