Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can't download data with yfinance #1467

Closed
Wickdhub opened this issue Mar 27, 2023 · 10 comments
Closed

Can't download data with yfinance #1467

Wickdhub opened this issue Mar 27, 2023 · 10 comments

Comments

@Wickdhub
Copy link

Hello!
For few months now, It seems like I can't use yfinance for anything, for example:

yf.download(tickers="AAPL")

Returns me:
1 Failed download:

  • AAPL: No data found for this date range, symbol may be delisted

Do you know how I can fix it?

Thanks

@Qiqipixel
Copy link

Do you use a proxy internet?

@laurentvv
Copy link

same problem with yfinance==0.2.14 after update, works with old version yfinance==0.2.13

@laurentvv
Copy link

Test code :
import yfinance as yf
from datetime import datetime

o = yf.download(tickers="O", start="2022-01-01", end=datetime.now())

Error :
1 Failed download:

  • O: No data found for this date range, symbol may be delisted

@Kantubhukta-Hemanth
Copy link

I too got the Same problem. do anyone know how to fix it?

@shql-tgr
Copy link

shql-tgr commented Apr 5, 2023

I have the same problem as well, and even downgrading to yfinance==0.2.13 doesn't fix it

@ValueRaider
Copy link
Collaborator

Try this: #1268 (comment)

@laurentvv
Copy link

Try without datetime.now(), direct end datetime like this :
Same error

import yfinance as yf

o = yf.download(tickers="O", start="2022-01-01", end="2023-01-01")

Result :
1 Failed download:

  • O: No data found for this date range, symbol may be delisted

With :
Python 3.11.2
Panda 2.0
yfinance 0.2.14

@shql-tgr
Copy link

shql-tgr commented Apr 5, 2023 via email

@miraculixx
Copy link

miraculixx commented Apr 6, 2023

Confirming that it this issue is reproducible when Pandas 2.0 is installed. After installing "pandas<2" the issue is gone (however that's obviously not the solution)

This breaks:

With :
Python 3.11.2
Panda 2.0
yfinance 0.2.14

This works:

With :
Python 3.11.2
Panda 1.5.3
yfinance 0.2.14

@laurentvv
Copy link

confirm works for me :
With :
Python 3.11.2
Panda 1.5.3
yfinance 0.2.14

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

No branches or pull requests

7 participants