yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

New feature request - add "expense ratio"

Open moedi85 opened this issue 4 years ago • 3 comments

It would be great if "expense ratio" from the Yahoo Finance Summary tab would be added to the info that can be obtained from .info

moedi85 avatar Jul 30 '21 06:07 moedi85

Since this feature has been long due and nothing is changing just fork the repo Edit base.py file and add the following after self._info = {} is defined:

        expenseRatio = (data
                        .get('fundProfile', {})
                        .get('feesExpensesInvestment', {})
                        .get('annualReportExpenseRatio', None))

        try:
            self._info['annualReportExpenseRatio'] = expenseRatio
        except Exception:
            pass

carlos-ventura avatar Apr 16 '22 00:04 carlos-ventura

This should be implemented. it's very easy as well.

Courvoisier13 avatar Jul 30 '22 16:07 Courvoisier13

@moedi85 @carlos-ventura @Courvoisier13 Ran has granted me permissions to merge PRs etc, but help is appreciated in creating and/or reviewing PRs - anyone can do this.

ValueRaider avatar Sep 20 '22 19:09 ValueRaider