forecast
Get Forecasted GDP Data.
Examples
from openbb import obb
obb.economy.gdp.forecast(provider='oecd')
obb.economy.gdp.forecast(country=united_states,germany,france, frequency=annual, units=capita, provider='oecd')
Parameters
- standard
- oecd
Name | Type | Description | Default | Optional |
---|---|---|---|---|
start_date | Union[date, str] | Start date of the data, in YYYY-MM-DD format. | None | True |
end_date | Union[date, str] | End date of the data, in YYYY-MM-DD format. | None | True |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
start_date | Union[date, str] | Start date of the data, in YYYY-MM-DD format. | None | True |
end_date | Union[date, str] | End date of the data, in YYYY-MM-DD format. | None | True |
country | Union[str, List[str]] | Country, or countries, to get forward GDP projections for. Default is all. Multiple items allowed for provider(s): oecd. | all | True |
frequency | Literal['annual', 'quarter'] | Frequency of the data, default is annual. | annual | True |
units | Literal['current_prices', 'volume', 'capita', 'growth', 'deflator'] | Units of the data, default is volume (chain linked volume, 2015). 'current_prices', 'volume', and 'capita' are expressed in USD; 'growth' as a percent; 'deflator' as an index. | volume | True |
Returns
OBBject
results : List[GdpForecast]
Serializable results.
provider : Optional[Literal['oecd']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra : Dict[str, Any]
Extra info.
Data
- standard
- oecd
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
country | str | None |
value | Union[int, float] | Forecasted GDP value for the country and date. |
Name | Type | Description |
---|---|---|
date | Union[date, str] | The date of the data. |
country | str | None |
value | Union[int, float] | Forecasted GDP value for the country and date. |