Skip to content
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

💥 Is yahoo finance broken? #2052

Open
paintdog opened this issue Sep 10, 2024 · 11 comments
Open

💥 Is yahoo finance broken? #2052

paintdog opened this issue Sep 10, 2024 · 11 comments

Comments

@paintdog
Copy link

Describe bug

Since yesterday, Yahoo Finance has not been providing data for several stocks, making it impossible for me to download them using your software. For example, for Honeywell – a Nasdaq 100 stock (!!!) – Yahoo Finance states: "There are no [data] in the selected time period."

I understand that this is likely a Yahoo Finance issue, but your software becomes unusable if the platform behind it stops providing data. As far as I can tell, this issue has affected a wide range of stocks (some US, mostly European) since yesterday.

Are others experiencing this problem as well? Does this happen from time to time, or is it a sign of a bigger issue? Any suggestions? Will Yahoo fix this problem, or are they already aware of it? Is Yahoo discontinuing data support?

Simple code that reproduces your problem

No simple code, as I use your software within my own modules.

Debug log

see above

Bad data proof

see above

yfinance version

0.24.3

Python version

Python 3.11

Operating system

Linux Mint 21.3

@divyankm
Copy link

divyankm commented Sep 10, 2024

Seems some Symbols are working, while some symbols are not working for yahoofinance since yesterday.
yfinance version: 0.2.43
python version: 3.10.12

Working Symbol: INDIGO.NS

import yfinance as yf
symbol = 'INDIGO.NS'  
df = yf.download(symbol, start='2022-11-05', interval='1h')
df.head()
>> 
Open | High | Low | Close | Adj Close
-- | -- | -- | -- | --

1774.849976 | 1817.699951 | 1774.849976 | 1801.349976 | 1801.349976
1800.599976 | 1802.000000 | 1769.050049 | 1777.800049 | 1777.800049
1778.050049 | 1788.000000 | 1774.150024 | 1778.050049 | 1778.050049
1784.849976 | 1784.849976 | 1676.300049 | 1683.650024 | 1683.650024
1683.400024 | 1721.000000 | 1680.150024 | 1720.000000 | 1720.000000

Non Working Symbol since Yesterday:

import yfinance as yf
symbol = 'TCS.NS'  
df = yf.download(symbol, start='2022-11-05', interval='1h')
df.head()
>> ERROR:yfinance:Could not get exchangeTimezoneName for ticker 'TCS.NS' reason: 'chart'
[*********************100%***********************]  1 of 1 completed
ERROR:yfinance:
1 Failed download:
ERROR:yfinance:['TCS.NS']: YFTzMissingError('$%ticker%: possibly delisted; no timezone found')

Are others experiencing this problem as well?
Yes , I am also experiencing the same.

Does this happen from time to time, or is it a sign of a bigger issue?
Its stable, using since lot of time. May be some issue at Yahoo Side.

Will Yahoo fix this problem, or are they already aware of it? Is Yahoo discontinuing data support?
May be will get clarity after some time.

@QuentinBennett
Copy link

Getting the same problem with a number of (but not all) .NZ tickers.

USF.NZ not working.
GNE.NZ working.

@divyankm
Copy link

divyankm commented Sep 10, 2024

Earlier Issues raised
: #2044
#1996
#1957

@QuentinBennett
Copy link

Getting the same problem with a number of (but not all) .NZ tickers.

USF.NZ not working. GNE.NZ working.

Replying to myself - https://finance.yahoo.com/quote/USF.NZ/history/ is empty which is probably the cause of the problem

@paintdog
Copy link
Author

It seems Yahoo Finance has fixed the issue (Honeywell)!?

@andrewbritt1
Copy link

For :

GetFacebookInformation = yfinance.Ticker("META")
print(*values: GetFacebookInformation.info)

I get:

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://query2.finance.yahoo.com/v6/finance/quoteSummary/META?modules=financialData&modules=quoteType&modules=defaultKeyStatistics&modules=assetProfile&modules=summaryDetail&ssl=true
conda list | grep finance
yfinance                  0.2.28             pyhd8ed1ab_0    conda-forge

P.S. Putting the above url into the browser produces: image

Seems like it started to work today....

I just wanted to add that I'm getting the same issue too. I hope there is a solution for this.

04 Client Error: Not Found for url: https://query2.finance.yahoo.com/v6/finance/quoteSummary/TSLA?modules=financialData&modules=quoteType&modules=defaultKeyStatistics&modules=assetProfile&modules=summaryDetail&ssl=true

@cdcv
Copy link

cdcv commented Sep 28, 2024

Can someone please clarify: is this issue solved, and is it possible to use yfinance again? Does yfinance 0.2.43 somehow solve the core issue with Yahoo changing their data availability? Can't quite see if Yahoo has made the data unavailable how a software update would fix that.

Repository owner deleted a comment from az-z Sep 28, 2024
Repository owner deleted a comment from az-z Sep 28, 2024
Repository owner deleted a comment from az-z Sep 28, 2024
@ValueRaider
Copy link
Collaborator

ValueRaider commented Sep 28, 2024

Version 0.2.32 added cookie & crumb, it helped a lot. I'm not sure what the remaining issue is - spam? old cookie? country-specific?

(deleted @az-z comments because using old version)

@cdcv
Copy link

cdcv commented Sep 28, 2024

Thank you ValueRaider. Does the cookie/crumb fully restore all prior functionality? Again, my understanding is that YFinance had removed considerable functionality from their API whether you're auth'd or not, like detailed historical data, and having a cookie wouldn't solve that. Am I miss-understanding? Thx again.

@ValueRaider
Copy link
Collaborator

Yahoo had removed considerable functionality from their API

This would break their website so I don't believe this. You could just install yfinance use it.

@kunif
Copy link

kunif commented Sep 30, 2024

According to the first paragraph of this article:

Exploring Alternatives to the Yahoo Finance API
https://eodhd.medium.com/exploring-alternatives-to-the-yahoo-finance-api-aa0415085cc5

Yahoo Finance recently limited access to its historical data downloads to Gold membership subscribers, which costs $50 per month (or $500 per year with a discount).


According to this help article, it looks like you can download your historical data if you pay for a Gold subscription.

Yahoo Finance subscription plans
https://help.yahoo.com/kb/SLN36623.html

Plans for desktop computers, billed annually

  • Gold - $49.95/Month, $479.40/Year ($120 savings on yearly payment plan)

Yahoo Finance Gold plan
Build your own investing strategies to maximize profits with premium charts, smart screeners, and 40+ years of historical downloadable data.

  • 40+ years of downloadable data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants