Skip to main content

calendar

Get the upcoming, or historical, economic calendar of global events.

Examples

from openbb import obb
# By default, the calendar will be forward-looking.
obb.economy.calendar(provider='fmp')
obb.economy.calendar(provider='fmp', start_date='2020-03-01', end_date='2020-03-31')
# By default, the calendar will be forward-looking.
obb.economy.calendar(provider='nasdaq')

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[EconomicCalendar]
Serializable results.

provider : Optional[Literal['fmp', 'nasdaq', 'tradingeconomics']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
dateUnion[datetime, str]The date of the data.
countrystrCountry of event.
categorystrCategory of event.
eventstrEvent name.
importancestrThe importance level for the event.
sourcestrSource of the data.
currencystrCurrency of the data.
unitstrUnit of the data.
consensusUnion[float, str]Average forecast among a representative group of economists.
previousUnion[float, str]Value for the previous period after the revision (if revision is applicable).
revisedUnion[float, str]Revised previous value, if applicable.
actualUnion[float, str]Latest released value.