Skip to main content

Trading Hours

The Trading Hours sub-module is a set of functions for checking the status and hours of operation for markets globally.

How to Use

There are only a handful of commands in the set, and they are listed below with a short description.

PathDescription
openbb.stocks.th.openWhich Exchanges are Currently Open
openbb.stocks.th.allAll Exchanges and Their Status
openbb.stocks.th.exchangeDetails for Individual Exchanges
openbb.stocks.th.closedList of Closed Exchanges

Alternatively, print the contents sub-module by entering:

help(openbb.stocks.th)

Examples

All

Get a list of global exchanges and their current status.

openbb.stocks.th.all()
nameshort_nameopen
SHZShenzen Stock ExchangeSHZEFalse
KSCKorea ExchangeKRXFalse
KOEKorea ExchangeKRXFalse
CAIThe Egyptian ExchangeCAFalse
PCXNYSE ArcaARCAFalse
SATNasdaq OMX StockholmSTFalse

Open

See which exchanges are open right now.

openbb.stocks.th.open()
nameshort_name
CNQCanadian Securities Exchange: CSECN
NZENZXNZ
MCXMOEXME

Exchange

Get the schedule of an individual exchange.

openbb.stocks.th.exchange('CNQ')
CNQ
nameCanadian Securities Exchange: CSE
short_nameCN
websitehttps://www.thecse.com/en/trading/trading-rules-and-links/trading-rules-and-regulations
market_open08:00:00
market_close18:00:00
lunchbreak_start
lunchbreak_end
opening_auction_start
opening_auction_end
closing_auction_start
closing_auction_end
timezoneCanada/Eastern
flag🇨🇦
openTrue