You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
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
Debug log
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
version0.2.37
Python version
3.9.16
Operating system
Windows 11
The text was updated successfully, but these errors were encountered: