Open mattpabi opened 1 month ago
Each command-line Python re-run will fetch a new crumb to initialise the new data singleton. But Jupyter persists Python state so no re-fetch happens? That could explain random difference.
Each command-line Python re-run will fetch a new crumb to initialise the new data singleton. But Jupyter persists Python state so no re-fetch happens? That could explain random difference.
Thanks, I see. Any way to solve this issue though? It's quite troublesome to scrape on-demand with this error.
Especially since I can't find anyone who has had this YFtz
error with a fix
I have been having the same issue. The data return randomly, I have also been using just the endpoint daily for the last 3 years and same thing there. This has been happening for about one month now. And same as you, when I run my code on Jupiter note book the data is more consistent, but still takes quite a bit longer than it used to. If you play with Yahoo Finance itself (pulling up a ticket and changing timeframes) the data is inconsistent there too.
the same to me
same issue
same issue
Spamming "same" not helping, use the reaction feature.
https://github.com/ranaroussi/yfinance#developers-want-to-contribute
Can we assume this is an issue from Yahoo's API, and not the yfinance
package?
Experienced the same problem with version 0.2.41
(with python 3.12.2) , and for the same code somehowever I got a '0.2.28' version in a different environment(with python 3.12.4) working perfectly well....
Only 1 request change since 0.2.28: adding cookie & crumb in 0.2.32, 9 months ago. Cookie is cached, but cache might not work in Jupyter so cookie fresh in each notebook.
After some heavy testing, it appears Yahoo has blocked some of my requests.
On the failed machine (a Linux server) it got the 403 Forbidden Error, whilst the working machine(a Mac) also using wget
method would complain Openssl error instead.
Describe bug
Hi, this was an issue I have not seen anybody raise:
YFTzMissingError
. I have been using yfinance for about 2 years now without ever encountering this issue too.When using
yf.download(ticker)
, a timezone not found error is raised, and it says that the request timed out. It's weird as the code seems to randomly work (without any intervention) every few minutes..py
script.Thanks in advance.
Simple code that reproduces your problem
Debug log
Bad data proof
No response
yfinance
version0.2.41
Python version
3.12.4
Operating system
No response