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

Can't download 'TLT' #1903

Open
none2003 opened this issue Apr 10, 2024 · 0 comments
Open

Can't download 'TLT' #1903

none2003 opened this issue Apr 10, 2024 · 0 comments

Comments

@none2003
Copy link

none2003 commented Apr 10, 2024

Describe bug

It is fine when using yfinance to download history data of other symbol, like 'QQQ' or 'SPY'. But it gives error when downloading code like 'TLT', 'JEPI', 'JEPQ', 'SHV'.

Simple code that reproduces your problem

import yfinance as yf
df = yf.download('TLT')

Debug log

Failed to get ticker 'TLT' reason: Expecting value: line 1 column 1 (char 0)
[*********************100%%**********************]  1 of 1 completed

1 Failed download:
['TLT']: Exception('%ticker%: No timezone found, symbol may be delisted')

Bad data proof

The 'TLT' historical data can be download manually by accessing https://finance.yahoo.com/quote/TLT/history?period1=1027987200&period2=1712707200&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true

The direct link is: https://query1.finance.yahoo.com/v7/finance/download/TLT?period1=1027987200&period2=1712707200&interval=1d&events=history&includeAdjustedClose=true

yfinance version

0.2.37

Python version

3.9.16

Operating system

Windows 11

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

1 participant