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

NameTypeDescriptionDefaultOptional
start_dateUnion[date, str]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[date, str]End date of the data, in YYYY-MM-DD format.NoneTrue

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

NameTypeDescription
dateUnion[date, str]The date of the data.
countrystrNone
valueUnion[int, float]Forecasted GDP value for the country and date.