Market calendar RESTful API with holiday, late open, and early close. Over 50+ unique exchange calendars for global equity and futures markets.

Overview

Trading Calendar

Market calendar RESTful API with holiday, late open, and early close. Over 50+ unique exchange calendars for global equity and futures markets.

Data includes:

  • All holidays, including: trading holidays and partial days
  • Support for timezones and daylight savings time transitions
  • Definitions for weekends for each market
  • Open and close time for each market
  • Support for irregular and interday trading hours
  • Current market status (open or closed).

Running it locally

Pull the Docker Image

Pull pre-built image from Docker Hub repository:

docker pull apptasticsoftware/trading-calendar:latest

Start the Docker Container

Run a container based on the image:

docker run -d --name trading-calendar -p 8000:80 apptasticsoftware/trading-calendar

Test it

You should be able to test it in your Docker container's URL, for example:

 http://127.0.0.1:8000/api/v1/markets?mic=XNYS

Interactive API docs

For automatic interactive API documentation (OpenAPI, previously known as the Swagger):

http://127.0.0.1:8000/docs

Calendar Support

Exchange MIC Country Exchange Website
New York Stock Exchange XNYS USA https://www.nyse.com/index
CBOE Futures XCBF USA https://markets.cboe.com/us/futures/overview/
Chicago Mercantile Exchange CMES USA https://www.cmegroup.com/
ICE US IEPA USA https://www.theice.com/index
Toronto Stock Exchange XTSE Canada https://www.tsx.com/
BMF Bovespa BVMF Brazil http://www.b3.com.br/en_us/
London Stock Exchange XLON England https://www.londonstockexchange.com/home/homepage.htm
Euronext Amsterdam XAMS Netherlands https://www.euronext.com/en/regulation/amsterdam
Euronext Brussels XBRU Belgium https://www.euronext.com/en/regulation/brussels
Euronext Lisbon XLIS Portugal https://www.euronext.com/en/regulation/lisbon
Euronext Paris XPAR France https://www.euronext.com/en/regulation/paris
Frankfurt Stock Exchange XFRA Germany http://en.boerse-frankfurt.de/
Deutsche Börse Xetra XETR Germany https://www.xetra.com/xetra-en/
SIX Swiss Exchange XSWX Switzerland https://www.six-group.com/exchanges/index.html
Tokyo Stock Exchange XTKS Japan https://www.jpx.co.jp/english/
Austrialian Securities Exchange XASX Australia https://www.asx.com.au/
Bolsa de Madrid XMAD Spain http://www.bolsamadrid.es/ing/aspx/Portada/Portada.aspx
Borsa Italiana XMIL Italy https://www.borsaitaliana.it/homepage/homepage.en.htm
New Zealand Exchange XNZE New Zealand https://www.nzx.com/
Wiener Borse XWBO Austria https://www.wienerborse.at/en/
Hong Kong Stock Exchange XHKG Hong Kong https://www.hkex.com.hk/?sc_lang=en
Copenhagen Stock Exchange XCSE Denmark http://www.nasdaqomxnordic.com/
Helsinki Stock Exchange XHEL Finland http://www.nasdaqomxnordic.com/
Stockholm Stock Exchange XSTO Sweden http://www.nasdaqomxnordic.com/
Oslo Stock Exchange XOSL Norway https://www.oslobors.no/ob_eng/
Irish Stock Exchange XDUB Ireland http://www.ise.ie/
Bombay Stock Exchange XBOM India https://www.bseindia.com
Singapore Exchange XSES Singapore https://www.sgx.com
Shanghai Stock Exchange XSHG China http://english.sse.com.cn
Korea Exchange XKRX South Korea http://global.krx.co.kr
Iceland Stock Exchange XICE Iceland http://www.nasdaqomxnordic.com/
Poland Stock Exchange XWAR Poland http://www.gpw.pl
Santiago Stock Exchange XSGO Chile http://inter.bolsadesantiago.com/sitios/en/Paginas/home.aspx
Colombia Securities Exchange XBOG Colombia https://www.bvc.com.co/nueva/index_en.html
Mexican Stock Exchange XMEX Mexico https://www.bmv.com.mx
Lima Stock Exchange XLIM Peru https://www.bvl.com.pe
Prague Stock Exchange XPRA Czech Republic https://www.pse.cz/en/
Budapest Stock Exchange XBUD Hungary https://bse.hu/
Athens Stock Exchange ASEX Greece http://www.helex.gr/
Istanbul Stock Exchange XIST Turkey https://www.borsaistanbul.com/en/
Tel Aviv Stock Exchange XTAE Israel https://www.tase.co.il/Eng/Pages/Homepage.aspx
Johannesburg Stock Exchange XJSE South Africa https://www.jse.co.za/z
Malaysia Stock Exchange XKLS Malaysia http://www.bursamalaysia.com/market/
Moscow Exchange XMOS Russia https://www.moex.com/en/
Philippine Stock Exchange XPHS Philippines https://www.pse.com.ph/stockMarket/home.html
Stock Exchange of Thailand XBKK Thailand https://www.set.or.th/set/mainpage.do?language=en&country=US
Indonesia Stock Exchange XIDX Indonesia https://www.idx.co.id/
Taiwan Stock Exchange Corp. XTAI Taiwan https://www.twse.com.tw/en/
Buenos Aires Stock Exchange XBUE Argentina https://www.bcba.sba.com.ar/
Pakistan Stock Exchange XKAR Pakistan https://www.psx.com.pk/
Astana International Exchange AIXK Kazakhstan https://www.aix.kz/
Bucharest Stock Exchange XBSE Romania https://www.bvb.ro/

Note that exchange calendars are defined by their ISO-10383 market identifier code (MIC).

Owner
Apptastic Software
Apptastic Software
GTK3-based panel for sway window manager

nwg-panel I have been using sway since 2019 and find it the most comfortable working environment, but... Have you ever missed all the graphical bells

Piotr Miller 290 Jan 07, 2023
Music bot because Octave is down and I can : )

Chords On a mission to build the best Discord Music Bot View Demo · Report Bug · Request Feature Table of Contents About The Project Built With Gettin

Aman Prakash Jha 53 Jan 07, 2023
Dumps to CSV all the resources in an organization's member accounts

AWS Org Inventory Dumps to CSV all the resources in an organization's member accounts. Set your environment's AWS_PROFILE and AWS_DEFAULT_REGION varia

Iain Samuel McLean Elder 2 Dec 24, 2021
Polar devices Python API and CLI.

loophole - Polar devices API About Python API for Polar devices. Command line interface included. Tested with: A360 Loop M400 Installation pip install

[roscoe] 145 Sep 14, 2022
Notion API Database Python Implementation

Python Notion Database Notion API Database Python Implementation created only by database from the official Notion API. Installing / Getting started p

minwook 78 Dec 19, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A simple Python wrapper for the archive.is capturing service

archiveis A simple Python wrapper for the archive.is capturing service. Installation pipenv install archiveis Python Usage Import it. import archi

Ben Welsh 157 Dec 28, 2022
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 06, 2022
A custom Discord Rich Presence to display when you're studying so you're stupid friends won't disturb you when you're studying.

Studying RPC Description A custom Discord Rich Presence to display when you're studying so you're stupid friends won't disturb you when you're studyin

John Edmerson Pizarra 4 Nov 19, 2022
A simple and modular Discord bot with various functionalities.

All-In-Bot for Discord A simple and modular Discord bot with various functionalities. How to use the bot? Simple! Just invite the bot to your server u

Th3J0nny 3 Jan 29, 2022
A Discord Bot coded using Python. Open to collaboration

DisPy-Bot A Discord Bot coded using Python. Open to collaboration La syntax pour intégrer le bot (imaginons la fonction lol_reponse dans le fichier au

BiMathAx 2 Mar 03, 2022
A simple bot discord in PY with moderation controls

Voila un bot discord en py avec les commandes simples de modération tout simplement faut changer les lignes 70 vous mettez votre token de votre bot 53

Ethan 1 Nov 20, 2021
Cord Python API Client

Cord Python API Client The data programming platform for AI 💻 Features Minimal low-level Python client that allows you to interact with Cord's API Su

Cord 52 Nov 25, 2022
The easiest way to deploy this Bot

How To Host The easiest way to deploy this Bot Update Channe

Isekai Reszz 1 Jan 23, 2022
A Discord bot that allows you to rapidly deploy Minecraft servers seamlessly and painlessly from Discord.

Lyra - rapidly and painlessly deploy Minecraft servers from Discord Lyra lets you deploy Minecraft server instances via Docker with control through a

1 Dec 23, 2021
A Python API wrapper for the Twitter API!

PyTweet PyTweet is an api wrapper made for twitter using twitter's api version 2! Installation Windows py3 -m pip install PyTweet Linux python -m pip

TheFarGG 1 Nov 19, 2022
RChecker - Checker for minecraft servers

🔎 RChecker v1.0 Checker for Minecraft Servers 💻 Supported operating systems: ✅

Pedro Vega 1 Aug 30, 2022
An all-in-one financial analytics and smart portfolio creator as a Discord bot!

An all-in-one financial analytics bot to help you gain quantitative financial insights. Finn is a Discord Bot that lets you explore the stock market like you've never before!

6 Jan 12, 2022
A simple, multipurpose Discord bot.

EpicBot 🏅 A simple, multipurpose Discord bot. • Info EpicBot is a multipurpose Discord bot that was designed to make your Discord life easier and coo

Nirlep_5252_ 130 Dec 29, 2022
Change between dark/light mode depending on the ambient light intensity

svart Change between dark/light mode depending on the ambient light intensity Installation Install using pip $ python3 -m pip install --user svart Ins

Siddharth Dushantha 169 Nov 26, 2022