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 for the query, by default None. If None, the provider specified in defaults is selected or 'oecd' if there is no default.oecdTrue

Data

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