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', 'intrinio']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.
market_capfloatMarket capitalization
pe_ratiofloatPrice-to-earnings ratio (P/E ratio)