ranaroussi / yfinance

Download market data from Yahoo! Finance's API

Home Page:https://aroussi.com/post/python-yahoo-finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some of the Balance Sheet Metrics Are Missing

tmtsmrsl opened this issue · comments

Describe bug

On https://finance.yahoo.com/quote/BAC/balance-sheet we can see metrics like "Cash And Due from Banks" and "Money Market Investments", but they are not available on the API.

Simple code that reproduces your problem

ticker = yf.Ticker("BAC")
ticker.get_balance_sheet().index.sort_values(ascending=True)

Debug log

DEBUG    Entering _fetch_time_series()
2024-03-07 13:03:14,870:DEBUG - Entering _fetch_time_series()
DEBUG    Exiting _fetch_time_series()
2024-03-07 13:03:14,898:DEBUG - Exiting _fetch_time_series()
Index(['AccountsPayable', 'AccountsReceivable', 'AccumulatedDepreciation',
       'AdditionalPaidInCapital', 'BuildingsAndImprovements',
       'CapitalLeaseObligations', 'CapitalStock', 'CashAndCashEquivalents',
       'CashCashEquivalentsAndShortTermInvestments', 'CommonStock',
       'CommonStockEquity', 'ConstructionInProgress',
       'CurrentCapitalLeaseObligation', 'CurrentDebtAndCapitalLeaseObligation',
       'DefinedPensionBenefit',
       'FinancialAssetsDesignatedasFairValueThroughProfitorLossTotal',
       'GoodwillAndOtherIntangibleAssets', 'GrossPPE', 'Inventory',
       'InvestedCapital', 'InvestmentinFinancialAssets',
       'InvestmentsAndAdvances', 'LongTermCapitalLeaseObligation',
       'LongTermDebtAndCapitalLeaseObligation', 'MachineryFurnitureEquipment',
       'NetPPE', 'NetTangibleAssets', 'NonCurrentAccruedExpenses',
       'NonCurrentDeferredTaxesAssets',
       'NonCurrentPensionAndOtherPostretirementBenefitPlans',
       'OrdinarySharesNumber', 'OtherIntangibleAssets', 'OtherPayable',
       'OtherProperties', 'OtherReceivables', 'OtherShortTermInvestments',
       'Payables', 'PrepaidAssets', 'RetainedEarnings', 'ShareIssued',
       'StockholdersEquity', 'TangibleBookValue', 'TotalAssets',
       'TotalCapitalization', 'TotalDebt', 'TotalEquityGrossMinorityInterest',
       'TotalLiabilitiesNetMinorityInterest', 'TotalTaxPayable'],
      dtype='object')

Bad data proof

No response

yfinance version

0.2.32

Python version

No response

Operating system

No response