Skip to main content

indicators

Get economic indicators by country and indicator.

Examples

from openbb import obb
obb.economy.indicators(symbol='PCOCO')
# Enter the country as the full name, or iso code. Use `/economy/available_indicators` to get a list of supported indicators from EconDB.
obb.economy.indicators(symbol='CPI', country='united_states,jp')
# Use the `main` symbol to get the group of main indicators for a country.
obb.economy.indicators(symbol='main', country='eu')
# IMF indicators are identified by their dataflow and indicator code. Use `/economy/available_indicators` to get and search a list of supported indicators symbols. This example gets gold reserves held by countries, measured in Fine Troy Ounces.
obb.economy.indicators(symbol='IL::RGV_REVS', country='*', frequency='month', limit=1, start_date='2025-09-30')
# IMF symbols can also be used for retrieving entire presentation tables. This example gets the Direct Investment Position (DIP) table. Use `/imf_utils/list_tables` to get a list of supported presentation table symbols.
obb.economy.indicators(symbol='DIP::H_DIP_INDICATOR', country='BRA', frequency='annual', limit=2, pivot=True)

Parameters

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

country: str | None | list[str | None]
The country to get data. Multiple items allowed for provider(s): econdb, imf.

frequency: str | None
The frequency of the data.

start_date: date | None | str
Start date of the data, in YYYY-MM-DD format.

end_date: date | None | str
End date of the data, in YYYY-MM-DD format.


Returns

results: EconomicIndicators

Serializable results.

provider: Optional[Literal['econdb', 'imf']]

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data

date: date | None | str
The date of the data.

symbol_root: str | None
The root symbol for the indicator (e.g. GDP).

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

country: str | None
The country represented by the data.

value: int | float | None