Trading, quant & market data
Exchange calendars for trading systems
Order schedulers, trading apps and quant pipelines all need to know when markets are open. Formula libraries handle the regular holidays but miss early closes and one-off closures, and they rarely separate trading days from settlement days. TradingCalendars publishes both calendars for each exchange, with closing times, and a live status endpoint.
Who uses it
- Brokers and trading apps
- Systematic and quant funds
- Market-data and index providers
- Robo-advisers and wealth platforms
- Teams scheduling jobs around market hours
Where exchange calendars go wrong
One-off closures missing
The NYSE closed on 9 January 2025 for the national day of mourning for President Carter. No rule produces that date; it has to be added by someone watching the exchange's notices.
Early closes ignored
US equity markets close at 13:00 New York time on the day after Thanksgiving, and many markets shorten Christmas Eve and New Year's Eve. Half days are flagged with their exact closing time.
Trading days used as settlement days
An exchange can trade on a day its settlement system is closed. Each exchange has a trading calendar (.TRADE) and a settlement calendar (.SETTLE).
Time zones and sessions
"Is the market open now?" depends on the exchange's local time and today's session. The market-status endpoint answers live, with the next open and close.
Live example
Exchange closures and early closes in the next 60 days
| Date | Closed or shortened | Holiday |
|---|---|---|
| Mon, 23 Nov 2026 | Tokyo | Labor Thanksgiving Day |
| Thu, 26 Nov 2026 | NYSE | Thanksgiving Day |
| Fri, 27 Nov 2026 | NYSE (early close) | Day after Thanksgiving, closes 13:00 |
| Thu, 24 Dec 2026 | NYSE (early close)LSE (early close)XetraHong Kong (early close) | Christmas Eve, closes 13:00 · Christmas Eve, closes 12:30 · Christmas Eve · Eve of Christmas Day, closes 12:00 |
| Fri, 25 Dec 2026 | NYSELSEXetraHong Kong | Christmas Day |
| Mon, 28 Dec 2026 | LSE | Boxing Day |
| Wed, 30 Dec 2026 | Xetra (early close) | Last trading day of the year, closes 14:00 |
| Thu, 31 Dec 2026 | LSE (early close)XetraTokyoHong Kong (early close) | New Year's Eve, closes 12:30 · New Year's Eve · Eve of New Year, closes 12:00 |
| Fri, 1 Jan 2027 | NYSELSEXetraTokyoHong Kong | New Year's Day · The first day of January |
| Mon, 11 Jan 2027 | Tokyo | Coming of Age Day |
Weekday closures and early closes (with local closing time) for NYSE, LSE, Xetra, Tokyo and Hong Kong. Live open/closed status: is the market open today?
What you get
61 exchanges
Trading and settlement calendars for the main equity and derivatives exchanges in the Americas, Europe, Middle East, Africa and Asia-Pacific.
Half days with times
Early closes carry the local closing time, so session logic can stop at the right minute.
pandas-ready
The Python client returns closure dates you can pass to pandas CustomBusinessDay or numpy busday functions.
Calendars to start with
Use it your way
The REST API, the open-source Python client, or your AI assistant through the MCP server. Full reference in the documentation.
curl "https://api.tradingcalendars.com/v1/trading-holidays?market=XNYS&start=2026-11-01&end=2026-12-31" \
-H "Authorization: Bearer YOUR_API_KEY"import pandas as pd
from tradingcalendars import TradingCalendars
tc = TradingCalendars()
closed = tc.closure_dates("XNYS.TRADE", start="2026-01-01", end="2027-12-31")
nyse = pd.offsets.CustomBusinessDay(holidays=closed)
pd.date_range("2026-11-20", "2026-12-31", freq=nyse) # NYSE sessions only
tc.market_status("XLON") # open now? next open / closeAsk your AI assistant (Claude, ChatGPT, Cursor)
“Which of NYSE, LSE and Tokyo close early or shut in the next two months?”
Questions
Yes. Half days and early closes are part of each exchange calendar, flagged separately from full closures and given with the local closing time when the exchange publishes one.