-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
annualReportExpenseRatio missing #2040
Comments
There were multiple efforts to support ETF and Mutual Funds Data. Some efforts were specific to expense ratios (#557), or holdings (#1872). These efforts also attempted to solve the issues in different methods (i.e. scraping html or using api). Rather than implementing piece-wise, I think fund level data should be supported holistically as started by #1784 using the api method. I will take this issue and also attempt to resolve the following issues/discussions in one go: |
hi @yunhongz, following #2041, you are now able to query
|
Describe bug
With over 1100 ETFs traded in NYSE/Nasdaq, I couldn't find the 'annualReportExpenseRatio' value frrom their info records. Is this field no longer available?
import yfinace as yf
ticker='SPYI'
yf_ticker = yf.Ticker(ticker)
info = yf_ticker.get_info()
info.get('annualReportExpenseRatio')
Simple code that reproduces your problem
import yfinace as yf
ticker='SPYI'; yf_ticker = yf.Ticker(ticker); info = yf_ticker.get_info(); info.get('annualReportExpenseRatio')
ticker='QQQ'; yf_ticker = yf.Ticker(ticker); info = yf_ticker.get_info(); info.get('annualReportExpenseRatio')
ticker='SPY'; yf_ticker = yf.Ticker(ticker); info = yf_ticker.get_info(); info.get('annualReportExpenseRatio')
ticker='SPY'; yf_ticker = yf.Ticker(ticker); info = yf_ticker.get_info(); info.get('annualReportExpenseRatio')
Debug log
Bad data proof
No response
yfinance
versionyfinance 0.2.38
Python version
python3.10
Operating system
No response
The text was updated successfully, but these errors were encountered: