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
No data found, symbol may be delisted #359
Comments
Note: it also doesn't help me, but every day I can see different tickers in "delisted" status, and next day these tickers downloading just fine. |
Getting it too but the issue is with Yahoo's API rather than this library. |
I am having the same problem. It happens to me to such an extent that the software overall is not helping me. I hope someone can identify a solution. Maybe need to put in a pause or ? |
Well, I've been working with yfinance now for a few days and for my purposes, I find it to not be useful. I think the marketing of a "reliable" stock reader is untrue. This code randomly fails to fetch me data a large % of the time. I will not spend time trying quantify the many number of ways it fails. I would simply say, try to download 3,000 tickers at one time and tell us how it goes. Doesn't matter if you use threads or not, chunk up tickers into sublists, or not, etc. You will find occasionally (and inconsistently) tickers being declared delisted. Also, at select times ( occasionally) you may get Nans which if you try to read later works fine. I need something that is actually reliable. |
It looks like Yahoo Finance (YF) has started to block requests like these by showing 404 errors; that's why you continue to see "No data found, symbol may be delisted". I've written a YF library that has a built-in retry mechanism as well as a backoff_factor for each successive retry. I was successful retrieving daily YTD data for all Nasdaq tickers. You can see here: https://gist.github.com/dpguthrie/120aeca5bd644cf50fd98b344a307297 |
Thank you for your help. I really wish for yfinance to work for me but the behavior seems even more erratic that I first thought . ( Of course I am not blaming yfinance but that is not material to me) . For example, suppose I have a list of 100 nasdaq tickers. I break them up into chunks of 4 (at most). Time ranges from now to 180 days past. Sometimes a chunk will have a missing entry, which I can believe is rather random event but 'WK" is almost always "lost" unless I call it as a singleton. So the probability of loss seems ticker dependent. |
I'm also getting these even on small batches. Wondering if there are certain times of the day that Yahoo just don't work? tickers =['FNF', 'ASML', 'GOOGL', 'CVS'] 2 Failed downloads:
|
I was wondering the same thing regarding time of day, etc. I agree that the newer library is more resilient. Thanks! But I tend to do bulk downloads ( ~ 3000 tickers) and I experience a pretty high failure rate. I have toggled asynchronous and also do one ticker at a time, now. That seems to help. But, what occurs now, pretty often, for a (for example) 180 day time range, "histories" will only return the last ("now") price. For some reason "WK" is particularly susceptible.
I may have to go old school and put some wait steps into my code. But that will dramatically increase the total execution time.
jeff
…-------------------------------------------
Jeffrey Tilson
Senior Research Scientist
Renaissance Computing Institute
UNC Chapel Hill
(919) 445-9657
________________________________
From: mspacey4415 <notifications@github.com>
Sent: Wednesday, July 29, 2020 12:58 AM
To: ranaroussi/yfinance <yfinance@noreply.github.com>
Cc: Tilson, Jeffrey L <jtilson@renci.org>; Comment <comment@noreply.github.com>
Subject: Re: [ranaroussi/yfinance] No data found, symbol may be delisted (#359)
I'm also getting these even on small batches. Wondering if there are certain times of the day that Yahoo just don't work?
tickers =['FNF', 'ASML', 'GOOGL', 'CVS']
data = yf.download(tickers, group_by="ticker", period='1y')
2 Failed downloads:
* GOOGL: No data found, symbol may be delisted
* CVS: No data found, symbol may be delisted
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#359 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB6PWABKDQPI7EBPPZL5RKDR56T7HANCNFSM4OJ4R5VQ>.
|
2000 requests/ hour per IP might be what is killing us - https://stackoverflow.com/questions/9346582/what-is-the-query-limit-on-yahoos-finance-api |
I haven't experienced this issue today, maybe it was fixed. |
though not sure related to above, I received the error due to no trading day, so no data, and it return empty dataframe. so it possible to happen due to stock temporary suspend,no trade, etc. |
I've only experienced this issue when connected to a VPN. Change the VPN country or disconnect and yfinance works OK. |
I am getting the same error even to download data for a single symbol! I tried several times giving time gap. But in vain! R=yf.Ticker('CAPACITE') This is indeed a big nuisance. Please help |
Hey you have to add an extension at the end of the ticker like here in India its 'NS' for NSE (stock exchange). |
Ticker names must be the yahoo finance link ones so you initially must have placed.ns |
Try using a proper suffix at the end of your tickets, for example, the NSE index has the '.NS' suffix at the end. |
I get same error only in Pycharm. But same code work on Jupyter |
Is this fixed in latest release 0.2.17? |
Hi, thank you for the really useful library!
My code:
Sometimes during the downloading of the historical data, I can see some errors like:
So, I suggest we add retry option to try download the data one more time in case it failed.
Now I'm doing this workaround in my code:
So it is better to have retry inside the library and do them automatically at least once.
The text was updated successfully, but these errors were encountered: