Skip to main content

metrics

Get fundamental metrics for a given company.

Examples

from openbb import obb
obb.equity.fundamental.metrics(symbol='AAPL', provider='fmp')
obb.equity.fundamental.metrics(symbol='AAPL', period=annual, limit=100, provider='intrinio')

Parameters

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio, yfinance.False
limitintThe number of data entries to return.100True

Returns

OBBject
results : List[KeyMetrics]
Serializable results.

provider : Optional[Literal['finviz', 'fmp', 'intrinio', 'yfinance']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

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