Trading Days API

Market Holidays API

Get market holiday dates for global exchanges with the GET /holidays endpoint. Base URL: https://api.tradingdays.net. See the full API reference for all endpoints.

Endpoint

GET https://api.tradingdays.net/holidays?exchange=NYSE&year=2026

Parameters

ParameterTypeDescription
exchangestringExchange code (NYSE, LSE, XTKS, …) or MIC (XNYS, XLON, …). Required.
countrystringFilter by country code (US, GB, JP, CN, DE, FR, CH, HK).
yearintegerCalendar year, e.g. 2026. Defaults to current year.
date_fromdateReturn holidays on or after this date (YYYY-MM-DD).
date_todateReturn holidays on or before this date (YYYY-MM-DD).
typestringHoliday type: national / bank / exchange / settlement.
statusstringconfirmed / tentative / closed.
limitintegerMax rows per page (default 100, max 1000).
offsetintegerPagination offset (default 0).

Example Response

{
  "data": [
    {
      "exchange": "NYSE",
      "country": "US",
      "date": "2026-12-25",
      "holiday_name": "Christmas Day",
      "type": "bank",
      "status": "confirmed"
    }
  ],
  "meta": { "total": 1, "limit": 100, "offset": 0 }
}

Code Examples

cURL

curl -H "X-Api-Key: YOUR_KEY" \
  "https://api.tradingdays.net/holidays?exchange=NYSE&year=2026"

JavaScript

const res = await fetch(
  "https://api.tradingdays.net/holidays?exchange=NYSE&year=2026",
  { headers: { "X-Api-Key": "YOUR_KEY" } }
);
const { data, meta } = await res.json();
console.log(data, meta);

Python

import requests

r = requests.get(
    "https://api.tradingdays.net/holidays",
    params={"exchange": "NYSE", "year": 2026},
    headers={"X-Api-Key": "YOUR_KEY"},
)
print(r.json())

Pricing

PlanPriceRequests / monthIncludes
Free$01001 API key, /holidays, /status, /next-trading-day, /exchanges
Pro$9/mo100,000Multiple keys, iCal subscription, priority support

FAQ

What exchanges are supported?

Ten exchanges across eight markets: NYSE, NASDAQ, LSE, HKEX, JPX, SSE, SZSE, XETR, XPAR and SIX. Each exchange is identified by code (NYSE) or MIC (XNYS) — see the full API reference for the complete list.

How accurate is the holiday data?

Every holiday row is cross-checked against official exchange sources (NYSE, gov.uk, JPX and others) with a versioned audit trail. Holidays marked "confirmed" are final; "tentative" entries can change if an exchange updates its calendar.

Can I get holidays for multiple years?

Yes. Pass the year parameter (2000–2100), or use date_from / date_to for a custom range across years.

Do I need an API key for /holidays?

Yes — /holidays requires an API key. You can get one free on the signup page: 100 requests/month at $0, no credit card. The /health and /exchanges endpoints are open.

What does the iCal subscription include?

Pro subscribers can pull /calendar.ics for an exchange and year — a live feed that stays in sync with your calendar app, so holiday closures show up automatically.

What is the rate limit?

Free tier: 100 requests/month. Pro: 100,000 requests/month. Responses are cached for 5 minutes, so repeated identical queries within that window don't count against your quota.

Get a free API key on the signup page — 100 requests/month at $0, no credit card.