Skip to main content
Version: v5

international_macroeconomic_data_set

Get ERS International Macroeconomic Data Set - historical and projected real GDP, GDP per capita, GDP deflator, real GDP shares, real exchange rates, consumer price indices, and population for baseline countries and regions from 1970 through the 2035 projection horizon, pivoted to a wide layout with the countries and regions as columns and the years as rows.

Examples​

from openbb import obb
obb.usda.international_macroeconomic_data_set(provider='usda')
# Get real GDP year-to-year growth rates by country and region since 2000.
obb.usda.international_macroeconomic_data_set(variable='real_gdp', measure='growth', start_year=2000, provider='usda')
# Get historical and projected population by country and region.
obb.usda.international_macroeconomic_data_set(variable='population', measure='level', provider='usda')
# Get consumer price indices, 2017 = 100, since 2010.
obb.usda.international_macroeconomic_data_set(variable='cpi', measure='level', start_year=2010, provider='usda')

Parameters​


Returns​

results: InternationalMacroeconomicDataSet

Serializable results.

provider: str | None

Provider name.

warnings: Optional[list[Warning_]]

List of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data​