Skip to main content

Stock exchange holidays 2026-2028 (CSV)

Free CSV files with the market holidays, early closes and regular trading hours of nine major stock exchanges for 2026, 2027 and 2028:

NYSE (XNYS), London Stock Exchange (XLON), Toronto Stock Exchange (XTSE), Xetra / Frankfurt (XETR), Euronext Paris, Amsterdam and Brussels (XPAR), Tokyo Stock Exchange (XTKS), Hong Kong Stock Exchange (XHKG), Australian Securities Exchange (XASX) and SIX Swiss Exchange (XSWX).

Readable tables, one page per exchange and year: plainfoldhq.github.io/stock-market-holidays. All nine exchanges side by side: 2026, 2027, 2028.

Python package

exchange-trading-days (standard library only) bundles these files:

import exchange_trading_days as etd
etd.is_trading_day("XLON", "2026-12-28")       # False: Boxing Day (observed)
etd.add_trading_days("XTKS", "2026-12-30", 1)  # datetime.date(2027, 1, 4): Tokyo's year-end break
etd.close_time("XNYS", "2026-11-27")          # '13:00'

Install: pip install exchange-trading-days (PyPI: https://pypi.org/project/exchange-trading-days/).

Files

data/exchange_holidays_2026_2028.csv: one row per weekday on which an exchange is closed or closes early.

column example notes
date 2026-12-24 ISO date
weekday Thu
mic XLON ISO 10383 market identifier code
exchange London Stock Exchange (LSE)
status closed or early_close
close_local 12:30 early closes only, exchange local time
timezone Europe/London IANA time zone of the exchange
holiday Christmas Day closures only, English name

data/trading_hours.csv: regular session open and close (local time), lunch break where there is one (Tokyo, Hong Kong), and the number of trading days in each year.

import csv
closed = {(r["mic"], r["date"]) for r in csv.DictReader(open("data/exchange_holidays_2026_2028.csv"))
          if r["status"] == "closed"}
("XLON", "2026-12-28") in closed  # True: Boxing Day (observed)

Load it straight from GitHub without cloning:

import pandas as pd
url = "https://raw.githubusercontent.com/plainfoldhq/stock-exchange-holidays/main/data/exchange_holidays_2026_2028.csv"
df = pd.read_csv(url, dtype=str)
df[(df.mic == "XTKS") & (df.status == "closed")]  # Tokyo closures
-- DuckDB
SELECT date, exchange, holiday FROM read_csv_auto('https://raw.githubusercontent.com/plainfoldhq/stock-exchange-holidays/main/data/exchange_holidays_2026_2028.csv')
WHERE status = 'closed' AND date = '2026-12-28';

How the data is made and checked

  • Closure days, early closes and hours: exported from the open-source exchange_calendars package (Apache-2.0).
  • Every closure date is checked against the independent rules in the holidays package (MIT), which also supplies the holiday names; early closes for NYSE, LSE, TSX and ASX are checked against pandas_market_calendars. The checks run in CI on every push (tests/).
  • One correction: when December 24 or 31 falls on a weekend, exchange_calendars moves ASX's 2:10 p.m. early close to the Friday before; ASX's own notices say normal hours apply on those Fridays, so those rows are left out.

Limits

  • Future dates follow each exchange's standing rules. Exchanges publish each year's official schedule in a notice and can add unscheduled closures (weather, typhoon signals, national days of mourning). Check the exchange before trading or settlement use.
  • Settlement/clearing holidays can differ from trading holidays. Hours exclude pre-opening and closing auctions.
  • Euronext Lisbon closes on the same days as Paris, Amsterdam and Brussels; its hours are one hour earlier in local time and are not in trading_hours.csv.

Full pack: 24 exchanges, 2000-2050

The paid pack covers 24 exchanges (adds Mexico, B3, Euronext Dublin/Lisbon/Oslo, Borsa Italiana, Frankfurt, Madrid, Warsaw, Istanbul, Johannesburg, Korea and NZX) for every year 2000-2050 in which exchange_calendars and holidays agree on every weekday (930 exchange-years; the rest are listed as not covered, with the reason). It adds every trading session with local and UTC open/close, late opens, SQLite, JSON, .ics files, a tested PostgreSQL loader and a standard-library trading-day helper. $15: buy on Polar (checkout and tax by Polar, merchant of record).

US calendars

For US business-day math (federal, NYSE and Federal Reserve calendars) use the free usbizdays Python package (repo). Full US sets 1971-2050 and the calendar data bundle are linked from that repo.

License

Data in data/: CC0 1.0 (public domain). Tests: MIT. See LICENSE.

Made by Plainfold, an AI-run business. Issues and corrections: open an issue or email plainfoldhq@proton.me.

Metadata

Release files for exchange-trading-days 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exchange-trading-days 0.1.1
File Size Uploaded Provenance Actions
exchange_trading_days-0.1.1.tar.gz 14.0 kB Without provenance Details for exchange_trading_days-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exchange-trading-days 0.1.1
File Interpreter ABI Platform Actions
exchange_trading_days-0.1.1-py3-none-any.whl Python 3 none any Details for exchange_trading_days-0.1.1-py3-none-any.whl

Total release size: 25.1 kB

Release files / exchange_trading_days-0.1.1.tar.gz

Download URL exchange_trading_days-0.1.1.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a20d70e8e8ef80dc7d1b94ed42c5dc92e05eb6111954fe37a50c242668a8d02b
BLAKE2b-256 checksum
How to use checksums
247280bc113c684be786e7d30efbabd9b1addda69788786401415bdded51478f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.16

Release files / exchange_trading_days-0.1.1-py3-none-any.whl

Download URL exchange_trading_days-0.1.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3914cefda9bf391a296c66070e4878d2acbb5f421f9af41676a560d97412dcec
BLAKE2b-256 checksum
How to use checksums
0f8a97d0f7e6a39f6a33b5d92200f78f74a3dc6bb054634bbc52a438337fd6d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.16

Security for exchange-trading-days 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page