Skip to main content

Key Metrics


Implementation details​

Class names​

Model nameParameters classData class
KeyMetricsKeyMetricsQueryParamsKeyMetricsData

Import Statement​

from openbb_core.provider.standard_models.key_metrics import (
KeyMetricsData,
KeyMetricsQueryParams,
)

Parameters​

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for.False
periodLiteral['annual', 'quarter']Time period of the data to return."annual"True
limitintThe number of data entries to return.100True
providerLiteral['fmp']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fmp' if there is no default."fmp"True

Data​

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
datedateThe date of the data.
periodstrPeriod of the data.
revenue_per_sharefloatRevenue per share
net_income_per_sharefloatNet income per share
operating_cash_flow_per_sharefloatOperating cash flow per share
free_cash_flow_per_sharefloatFree cash flow per share
cash_per_sharefloatCash per share
book_value_per_sharefloatBook value per share
tangible_book_value_per_sharefloatTangible book value per share
shareholders_equity_per_sharefloatShareholders equity per share
interest_debt_per_sharefloatInterest debt per share
market_capfloatMarket capitalization
enterprise_valuefloatEnterprise value
pe_ratiofloatPrice-to-earnings ratio (P/E ratio)
price_to_sales_ratiofloatPrice-to-sales ratio
pocf_ratiofloatPrice-to-operating cash flow ratio
pfcf_ratiofloatPrice-to-free cash flow ratio
pb_ratiofloatPrice-to-book ratio
ptb_ratiofloatPrice-to-tangible book ratio
ev_to_salesfloatEnterprise value-to-sales ratio
enterprise_value_over_ebitdafloatEnterprise value-to-EBITDA ratio
ev_to_operating_cash_flowfloatEnterprise value-to-operating cash flow ratio
ev_to_free_cash_flowfloatEnterprise value-to-free cash flow ratio
earnings_yieldfloatEarnings yield
free_cash_flow_yieldfloatFree cash flow yield
debt_to_equityfloatDebt-to-equity ratio
debt_to_assetsfloatDebt-to-assets ratio
net_debt_to_ebitdafloatNet debt-to-EBITDA ratio
current_ratiofloatCurrent ratio
interest_coveragefloatInterest coverage
income_qualityfloatIncome quality
dividend_yieldfloatDividend yield
payout_ratiofloatPayout ratio
sales_general_and_administrative_to_revenuefloatSales general and administrative expenses-to-revenue ratio
research_and_development_to_revenuefloatResearch and development expenses-to-revenue ratio
intangibles_to_total_assetsfloatIntangibles-to-total assets ratio
capex_to_operating_cash_flowfloatCapital expenditures-to-operating cash flow ratio
capex_to_revenuefloatCapital expenditures-to-revenue ratio
capex_to_depreciationfloatCapital expenditures-to-depreciation ratio
stock_based_compensation_to_revenuefloatStock-based compensation-to-revenue ratio
graham_numberfloatGraham number
roicfloatReturn on invested capital
return_on_tangible_assetsfloatReturn on tangible assets
graham_net_netfloatGraham net-net working capital
working_capitalfloatWorking capital
tangible_asset_valuefloatTangible asset value
net_current_asset_valuefloatNet current asset value
invested_capitalfloatInvested capital
average_receivablesfloatAverage receivables
average_payablesfloatAverage payables
average_inventoryfloatAverage inventory
days_sales_outstandingfloatDays sales outstanding
days_payables_outstandingfloatDays payables outstanding
days_of_inventory_on_handfloatDays of inventory on hand
receivables_turnoverfloatReceivables turnover
payables_turnoverfloatPayables turnover
inventory_turnoverfloatInventory turnover
roefloatReturn on equity
capex_per_sharefloatCapital expenditures per share