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.

Guide

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/).

Outside 2026-2028 every function raises NotCovered (it never guesses). The message says whether the paid full set covers that exchange-year, and links to it only then. exchange-trading-days info prints the free and full coverage per exchange. The package makes no network calls.

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.

  • plainfoldhq/world-public-holidays: free CSV of public holidays for 26 countries and regions, 2026-2028, cross-checked against two independent implementations.
  • plainfoldhq/fx-settlement-holidays: FX settlement holidays (USD, EUR/TARGET2, GBP, JPY, AUD, NZD) and T+2 spot value dates, 2026-2028, checked against QuantLib.
  • plainfoldhq/options-expiration-dates: free CSV of options expiration dates 2000-2050 (monthly opex with NYSE holidays applied, quad witching, VIX settlement, IMM dates).
  • plainfoldhq/dbt-business-days: free dbt package with holiday calendars and business-day macros for SQL (14 calendars incl. settlement currencies, 2026-2028).
  • plainfoldhq/business-day-conventions: free test vectors for business-day roll conventions and day-count fractions, recomputed with QuantLib on every push.
  • plainfoldhq/pandas-holiday-calendars: free pandas holiday calendars (NYSE, Federal Reserve, US federal 2000-2050; England and Wales, Euro T2 2026-2028) for CustomBusinessDay, bdate_range and numpy.busday_count; pip install pandas-holiday-calendars.
  • All Plainfold data packs in one yearly plan: All-Access.
  • plainfoldhq/plainfold-calendars-mcp: free MCP server that lets AI assistants (Claude, other MCP clients) check business days, market holidays and FX spot dates offline, built on this package; pip install plainfold-calendars-mcp.
  • plainfoldhq/pytest-business-days: free pytest plugin that runs your tests over these exchanges' holidays, early closes and month ends (2026-2028), built on exchange-trading-days; pip install pytest-business-days.

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.2.0

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.2.0
File Size Uploaded Provenance Actions
exchange_trading_days-0.2.0.tar.gz 16.7 kB Without provenance Details for exchange_trading_days-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.1 kB

Release files / exchange_trading_days-0.2.0.tar.gz

Download URL exchange_trading_days-0.2.0.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13ee09901d152488e6b55aad72d669658077b49a80d4999c5686eb6db86c1420
BLAKE2b-256 checksum
How to use checksums
aa1ca5a37a940226552c9abf99746c41f57a7ce4d40435e6766021bdd6bfdb1d
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.2.0-py3-none-any.whl

Download URL exchange_trading_days-0.2.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
338a1dac40c9bcd2964818705990b6f2cf4a3e56b10bf2971f352eb581aad98c
BLAKE2b-256 checksum
How to use checksums
4f201882b8da59bcd8ad1903abc3b3db8738fe6dfee6e00ce18f022caaf8dcb4
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.2.0

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.

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