Skip to main content

events

Get economic calendar for countries between specified dates

Source Code: [link]

openbb.economy.events(countries: Union[List[str], str] = "", start_date: Optional[str] = None, end_date: Optional[str] = None)

Parameters

NameTypeDescriptionDefaultOptional
countries[List[str],str]List of countries to include in calendar. Empty returns allTrue
start_dateOptional[str]Start date for calendarNoneTrue
end_dateOptional[str]End date for calendarNoneTrue

Returns

TypeDescription
pd.DataFrameEconomic calendar

Examples

Get todays economic calendar for the United States

from openbb_terminal.sdk import openbb
calendar = openbb.economy.events("united_states")

To get multiple countries for a given date, pass the same start and end date as well as a list of countries

calendars = openbb.economy.events(["united_states", "canada"], start_date="2022-11-18", end_date="2022-11-18")