Skip to main content

Gdp Forecast


Implementation details​

Class names​

Model nameParameters classData class
GdpForecastGdpForecastQueryParamsGdpForecastData

Import Statement​

from openbb_core.provider.standard_models.gdp_forecast import (
GdpForecastData,
GdpForecastQueryParams,
)

Parameters​

NameTypeDescriptionDefaultOptional
periodLiteral['quarter', 'annual']Time period of the data to return. Units for nominal GDP period. Either quarter or annual.annualTrue
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
typeLiteral['nominal', 'real']Type of GDP to get forecast of. Either nominal or real.realTrue
providerLiteral['oecd']The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: oecd.NoneTrue

Data​

NameTypeDescription
datedateThe date of the data.
valuefloatNominal GDP value on the date.