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
Ethereum transactions and wallet information for people you follow on Twitter.

ethFollowing Ethereum transactions and wallet information for people you follow on Twitter. Set up Setup python environment (requires python 3.8): vir

Brian Donohue 2 Dec 28, 2021
Code done for/during the course

Serverless Course Autumn 2021 - Code This repository contains a set of examples developed during, but not limited to the live coding sessions. Lesson

Alexandru Burlacu 4 Dec 21, 2021
A small repository with convenience functions for working with the Notion API.

Welcome! Within this respository are a few convenience functions to assist with the pulling and pushing of data from the Notion API.

10 Jul 09, 2022
TeamDltvideo Bot you can add in your Telegram Group Thanks

TeamDltvideo TeamDltvideo Bot you can add in your Telegram Group Thanks Video Stream is a telegram bot project that's allow you to play video on teleg

TeamDlt 1 Nov 18, 2021
Python Library to Extract youtube video Tags without Youtube API

YoutubeTags Python Library to Extract youtube video Tags without Youtube API Installation pip install YoutubeTags Example import YoutubeTags from Yout

Nuhman Pk 17 Nov 12, 2022
Send GitHub Issues, PRs or Discussions Updates to Wechat

Send GitHub Issues, PRs or Discussions Updates to Wechat

Hollow Man 2 Jul 12, 2022
PokemonGo-Bot - The Pokemon Go Bot, baking with community.

PokemonGo-Bot PokemonGo-Bot is a project created by the PokemonGoF team. Since no public API available for now, a patch to use HASH-Server was applied

3.8k Jan 08, 2023
Verkehrsunfälle in Deutschland, aufgeschlüsselt nach Verkehrsmittel des Hauptverursachers und Nebenverursachers

How-To Einfach ./main.py ausführen mit der Statistik-Datei aus dem Ordner "Unfälle_mit_mehreren_Beteiligten" als erstem Argument. Requirements python,

4 Oct 12, 2022
This is a walkthrough about understanding the #BoF machine present in the #OSCP exam.

Buffer Overflow methodology Introduction These are 7 simple python scripts and a methodology to ease (not automate !) the exploitation. Each script ta

3isenHeiM 53 Dec 08, 2022
Telegram bot that sends new offers from otomoto.pl

Telegram bot that sends new offers under certain filters from otomoto.pl How to use this bot? Install requirements with pip install -r requirements.tx

Mikhail Zanka 1 Feb 14, 2022
A telegram bot for generate fake details. Written in python using telethon

FakeDataGenerator A telegram bot for generate fake details. Written in python using telethon. Mandatory variables API_HASH Get it from my telegram.org

Oxidised-Man 6 Dec 19, 2021
Discord Mass Report script that uses multiple tokens

Discord-Mass-Report Discord Mass Report script that uses multiple tokens, full credits to https://github.com/hoki0/Discord-mass-report who made it in

cChimney 4 Jun 08, 2022
Telegram bot for downloading covid-19 vaccine certificate

cowin-certificate-bot This is the source code of @cowincertbot, A telegram bot inspired by the whatsapp bot implementation of indian government for co

ArUn Pt 30 Oct 07, 2022
A Python wrapper for discord slash-commands, designed to extend discord.py.

dislash.py An extending library for discord.py that allows to build awesome slash-commands. ⭐

173 Dec 19, 2022
Python client and API for monitoring and controling energy diversion devices from MyEnergi

Python client and API for monitoring and controling energy diversion devices from MyEnergi A set of library functions and objects for interfacing with

1 Dec 17, 2021
A simple script that will watch a stream for you and earn the channel points.

Credits Main idea: https://github.com/gottagofaster236/Twitch-Channel-Points-Miner Bet system (Selenium): https://github.com/ClementRoyer/TwitchAutoCo

Alessandro Maggio 1.1k Jan 08, 2023
⚡️ Get notified as soon as your next CPU, GPU, or game console is in stock

Inventory Hunter This bot helped me snag an RTX 3070... hopefully it will help you get your hands on your next CPU, GPU, or game console. Requirements

Eric Marti 1.1k Dec 26, 2022
Threat Intel Platform for T-POTs

T-Pot 20.06 runs on Debian (Stable), is based heavily on docker, docker-compose

Deutsche Telekom Security GmbH 4.3k Jan 07, 2023
This bot is created by AJTimePyro and It accepts direct downloading url & then return file as telegram file.

URL Uploader Bot This is the source code of URL Uploader Bot. And the developer of this bot is AJTimePyro, His Telegram Channel & Group. You can use t

Abhijeet 23 Nov 13, 2022
Mazda Connected Service API wrapper based on pymazda and Flask.

Mazda Connected Service Relay Mazda Connected Service API wrapper based on pymazda and Flask. Usage Make POST calls to https://mymazda.herokuapp.com/{

Alan Chen 10 Jan 05, 2023