Files
OpenBB/website/content/sdk/data-available/stocks/trading-hours.md
DidierRLopes 4ad995fdd0 Docs/terminalpro and improvement (#5622)
* add first iteration of content for Terminal Pro

* Update index.md

* Update dashboards.md

* Update folders.md

* Update grouping.md

* Update report.md

* Update templates.md

* Update quick-start.md

* Update index.md

* Update index.md

* Update home.md

* Update news.md

* Update index.md

* Update index.md

* Update index.md

* Update data-provider.md

* Update chat-with-widget.md

* Update data-manipulation.md

* Update forecasting.md

* fix: images self closing tags

* fix: only pro visitors can see pro

* inter font

* improve SEO content and restructuring

* add new package for toggle on tutorials

* move folder around

* improve main page of each prod

* small updates and improvements

* fix logo above

* small improvement in headtitle for portfolio funcs

* fix typos from OpenAI's GPT-4

* fix _category_ json

* remove generic SEO words

* add script that generates SEO for documentation

* add missing file

* remove sdk warning message

* fix links for andrew

---------

Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-10-30 21:01:29 +00:00

4.1 KiB
Vendored

title, description, keywords
title description keywords
Trading Hours The Trading Hours sub-module provides functions for checking the status and hours of operation for markets globally. It allows users to understand which exchanges are currently open, all exchanges and their status, details for individual exchanges, and a list of closed exchanges.
Trading Hours
Market Status
Stock Exchanges
Open Exchanges
Closed Exchanges
Individual Exchange Details
Global Markets

import HeadTitle from '@site/src/components/General/HeadTitle.tsx';

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.

Path Description
openbb.stocks.th.open Which Exchanges are Currently Open
openbb.stocks.th.all All Exchanges and Their Status
openbb.stocks.th.exchange Details for Individual Exchanges
openbb.stocks.th.closed List 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()
name short_name open
SHZ Shenzen Stock Exchange SHZE False
KSC Korea Exchange KRX False
KOE Korea Exchange KRX False
CAI The Egyptian Exchange CA False
PCX NYSE Arca ARCA False
SAT Nasdaq OMX Stockholm ST False

Open

See which exchanges are open right now.

openbb.stocks.th.open()
name short_name
CNQ Canadian Securities Exchange: CSE CN
NZE NZX NZ
MCX MOEX ME

Exchange

Get the schedule of an individual exchange.

openbb.stocks.th.exchange('CNQ')
CNQ
name Canadian Securities Exchange: CSE
short_name CN
website https://www.thecse.com/en/trading/trading-rules-and-links/trading-rules-and-regulations
market_open 08:00:00
market_close 18:00:00
lunchbreak_start
lunchbreak_end
opening_auction_start
opening_auction_end
closing_auction_start
closing_auction_end
timezone Canada/Eastern
flag 🇨🇦
open True