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

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[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

date: Union[datetime, str]
The date of the data.

country: str
Country of event.

category: str
Category of event.

event: str
Event name.

importance: str
The importance level for the event.

source: str
Source of the data.

currency: str
Currency of the data.

unit: str
Unit of the data.

consensus: Union[float, str]
Average forecast among a representative group of economists.

previous: Union[float, str]
Value for the previous period after the revision (if revision is applicable).

revised: Union[float, str]
Revised previous value, if applicable.

actual: Union[float, str]
Latest released value.