Skip to main content

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

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.

Optional: True


Returns

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

date: Union[date, str]

The date of the data.

country: str

None

value: Union[int, float]

Forecasted GDP value for the country and date.