ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
12.62k stars 2.25k forks source link

Stock analysis data not up-to-date #994

Open czechmate247 opened 2 years ago

czechmate247 commented 2 years ago

I have found that when running the below code, I get inconsistent data back. Sometimes, I will get the "0Y" "end date" being the current year as it should be. But other times, that data will be the previous year. I thought it may have been volume of requests I am making but even when waiting minutes in between the requests, the data is still inconsistent. This data should match the same results coming back on yahoo.finance under the analysis tab for a particular stock (and when it comes back correct with yfinance, it does). I just can't figure out why I get this inconsistency and have run out of ideas to get around it.

ticker = yf.Ticker(<symbol>) 
ticker.analysis
smhhadima commented 2 years ago

I have the same issue with the calendar. at the beginning it get correct dates then after few fetches it pulls old data

ValueRaider commented 4 months ago

1) Does this still happen in latest version?

2) Does reducing spam help? fetch smarter ; yfinance_cache