indicators
Get economic indicators by country and indicator.
Examples
from openbb import obb
obb.economy.indicators(provider='econdb', symbol=PCOCO)
# Enter the country as the full name, or iso code. Use `available_indicators()` to get a list of supported indicators from EconDB.
obb.economy.indicators(symbol=CPI, country='united_states,jp', provider='econdb')
# Use the `main` symbol to get the group of main indicators for a country.
obb.economy.indicators(provider='econdb', symbol=main, country='eu')
# When the provider is 'imf', the absence of a symbol will default to 'irfcl_top_lines'. Use 'IRFCL' to get all the data from the set of indicators.
obb.economy.indicators(provider='imf')
# When the provider is 'imf', complete tables are returned by using a 'preset'. Refer to the function's docstring for descriptions of each preset. When no country is supplied, the data is returned for all countries.
obb.economy.indicators(provider='imf', symbol=gold_reserves)
# When the provider is 'imf', multiple countries and symbols can be supplied. Enter countries as a two-letter ISO country code, or the country name in lower_snake_case.
obb.economy.indicators(provider='imf', symbol=RAFA_USD,RAPFA_USD,RAFA_RAPFA_RO, country='us,china,jp,4f,gb', start_date='2010-01-01', end_date='2020-12-31', frequency=annual)
# When the provider is 'imf', additional presets return the core Financial Soundness Indicators.
'fsi_core' - Core FSIs
'fsi_encouraged_set' - Encouraged Set of FSIs,
'fsi_core_underlying' - Underlying data for the Core FSIs.
'fsi_other' - Additional/Other FSIs that are not in the Core or Encouraged Set.
'fsi_all' - all FSI data for a single country.
obb.economy.indicators(provider='imf', symbol=fsi_encouraged_set, country='us,fr,gb', start_date='2022-01-01', end_date='2023-12-31', frequency=annual)
Parameters
- standard
- econdb
- imf
country
: Union[str, list[str]]
The country to get data. The country represented by the indicator, if available. Multiple items allowed for provider(s): econdb, imf.
Choices
all
afghanistan
albania
algeria
american_samoa
angola
anguilla
antigua_and_barbuda
argentina
armenia
aruba
australia
austria
azerbaijan
bahamas
bahrain
bangladesh
barbados
belarus
belgium
belize
benin
bermuda
bhutan
bolivia
bosnia_and_herzegovina
botswana
brazil
brunei_darussalam
bulgaria
burkina_faso
burundi
cabo_verde
cambodia
cameroon
canada
central_african_republic
chad
chile
hong_kong
macao
china
colombia
comoros
democratic_republic_of_the_congo
congo
costa_rica
ivory_coast
croatia
cuba
curacao
cyprus
czech_republic
denmark
djibouti
dominica
dominican_republic
ecuador
egypt
el_salvador
equatorial_guinea
eritrea
estonia
eswatini
ethiopia
falkland_islands
faroe_islands
fiji
finland
france
french_polynesia
gabon
gambia
georgia
germany
ghana
gibraltar
greece
greenland
grenada
guam
guatemala
guinea
guyana
haiti
vatican_city_state
honduras
hungary
iceland
india
indonesia
iran
iraq
ireland
israel
italy
jamaica
japan
jordan
kazakhstan
kenya
kiribati
north_korea
south_korea
kosovo
kuwait
kyrgyzstan
lao
latvia
lebanon
lesotho
liberia
libya
lithuania
luxembourg
madagascar
malawi
malaysia
maldives
mali
malta
marshall_islands
mauritania
mauritius
mexico
micronesia
moldova
mongolia
montenegro
montserrat
morocco
mozambique
myanmar
namibia
nauru
nepal
antilles
netherlands
new_caledonia
new_zealand
nicaragua
niger
nigeria
north_macedonia
norway
oman
pakistan
palau
panama
papua_new_guinea
paraguay
peru
philippines
poland
portugal
qatar
romania
russia
rwanda
samoa
san_marino
sao_tome_and_principe
saudi_arabia
senegal
serbia_and_montenegro
serbia
seychelles
sierra_leone
singapore
sint_maarten
slovakia
slovenia
solomon_islands
somalia
south_africa
south_sudan
spain
sri_lanka
saint_kitts_and_nevis
saint_lucia
saint_vincent_and_the_grenadines
sudan
suriname
sweden
switzerland
syria
taiwan
tajikistan
tanzania
thailand
timor-leste
togo
tonga
trinidad_and_tobago
tunisia
turkey
turkmenistan
tuvalu
uganda
ukraine
united_arab_emirates
united_kingdom
united_states
uruguay
uzbekistan
vanuatu
venezuela
viet_nam
palestine
yemen
zambia
zimbabwe
euro_area
europe
european_union
unspecified
• Optional: True
start_date
: Union[date, str]
Start date of the data, in YYYY-MM-DD format.
• Optional: True
end_date
: Union[date, str]
End date of the data, in YYYY-MM-DD format.