Skip to main content

ratios

Get an extensive set of financial and accounting ratios for a given company over time.

Examples

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

Parameters

symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): fmp.

limit: int
The number of data entries to return.


Returns

results: list[FinancialRatios]

Serializable results.

provider: Optional[Literal['fmp', 'intrinio']]

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data

symbol: str
Symbol representing the entity requested in the data.

period_ending: date
The date of the data.

fiscal_period: str
Period of the financial ratios.

fiscal_year: int
Fiscal year.