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. Multiple items allowed for provider(s): finviz, fmp, intrinio, yfinance.False
periodLiteral['annual', 'quarter']Time period of the data to return.annualTrue
limitintThe number of data entries to return.100True
providerLiteral['finviz', 'fmp', 'intrinio', 'yfinance']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'finviz' if there is no default.finvizTrue

Data

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
market_capfloatMarket capitalization
pe_ratiofloatPrice-to-earnings ratio (P/E ratio)