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: date | str
Start date of the data, in YYYY-MM-DD format.

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


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: date | str
The date of the data.

country: str
None

value: Union[int, float]
Forecasted GDP value for the country and date.