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
Are you spelling ticker exactly same as Yahoo? Yes
Then visit finance.yahoo.com and confirm they have the data you want. Maybe your ticker was delisted, or your expectations of yfinance are wrong.
Are you spamming Yahoo?
Yahoo Finance free service has rate-limiting depending on request type - roughly 60/minute for prices, 10/minute for info. Once limit hit, Yahoo can delay, block, or return bad data. Not a yfinance bug.
Still think it's a bug?
Delete this default message (all of it) and submit your bug report here, providing the following as best you can:
Simple code that reproduces your problem, that we can copy-paste-run :
import time
import yfinance as yf
ticker = "AAPL"
time.sleep(1) # Add a delay before fetching the data
stock = yf.Ticker(ticker)
time.sleep(1) # Add a delay before accessing the financials
income_statement = stock.financials
print(f"Income Statement for {ticker}:")
print(income_statement)
Exception message with full traceback, or proof yfinance returning bad data
IMPORTANT
If you want help, you got to read this first, follow the instructions.
Are you up-to-date? Y
Upgrade to the latest version and confirm the issue/bug is still there.
$ pip install yfinance --upgrade --no-cache-dir
Confirm by running:
import yfinance as yf ; print(yf.__version__)
-- 0.2.12and comparing against PIP.
Does Yahoo actually have the data? Yes
Are you spelling ticker exactly same as Yahoo? Yes
Then visit
finance.yahoo.com
and confirm they have the data you want. Maybe your ticker was delisted, or your expectations ofyfinance
are wrong.Are you spamming Yahoo?
Yahoo Finance free service has rate-limiting depending on request type - roughly 60/minute for prices, 10/minute for info. Once limit hit, Yahoo can delay, block, or return bad data. Not a
yfinance
bug.Still think it's a bug?
Delete this default message (all of it) and submit your bug report here, providing the following as best you can:
import yfinance as yf
ticker = "AAPL"
time.sleep(1) # Add a delay before fetching the data
stock = yf.Ticker(ticker)
time.sleep(1) # Add a delay before accessing the financials
income_statement = stock.financials
print(f"Income Statement for {ticker}:")
print(income_statement)
yfinance
returning bad dataAttributeError: 'NoneType' object has no attribute 'group'
yfinance
version and Python version : Python 3.10.10 & 0.2.12The text was updated successfully, but these errors were encountered: