Trading Calendar API
FinanceMAINTAINED1 token / call

Trading Calendar API

Is the US stock market open? NYSE and Nasdaq holidays, early closes and trading-day math, 1998 to 2200

Is the market open? The US equity trading calendar (NYSE/Nasdaq) computed from the published rules for any year from 1998 through 2200: the ten market holidays with correct observance (including the subtle ones — Good Friday from the Easter computus, Saturday holidays observed the preceding Friday, and the Saturday New Year rule under which the market simply has no New Year holiday, as in 2022), the 13:00 ET early closes (day after Thanksgiving, Christmas Eve, July 3 when the rules say so), regular 09:30-16:00 ET hours, next-trading-day resolution, and trading-day counts and lists for any date range (2026 has exactly 251). July 4 2026 falls on a Saturday, so the holiday endpoint correctly shows July 3 observed AND drops that year's July 3 early close. Pure computation — no scraped calendar that goes stale, answers in milliseconds at the lowest token cost. The scheduling backbone for trading apps, fintech backends, settlement-date math, options-expiry tooling and reporting jobs. Pairs with our Stock Tickers, Company Financials and Inflation APIs. Excludes unscheduled closures such as days of mourning.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 1 token per call, so the free plan covers about 500 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "date": "2026-11-27",
  "is_trading_day": true,
  "reason": null,
  "early_close": true,
  "hours_et": {
    "open": "09:30",
    "close": "13:00"
  },
  "next_trading_day": null
}
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.

Use cases for Trading Calendar API

  • Show an 'open' or 'closed' badge with the next opening time on a trading or portfolio app.

  • Compute settlement dates and trading-day counts between two dates for back-office and reporting.

  • Schedule data jobs and alerts only on trading days, skipping holidays and respecting 13:00 early closes.

  • Back-test strategies with an exact list of trading days for any year since 1998.

Trading Calendar API endpoints

Every endpoint with its parameters and a real example response.

GETMarket Holidays

https://api-trading-calendar.dataandapis.com/v1/holidays

Query parameters

ParameterExample
year2026Optional

Example request

curl "https://api-trading-calendar.dataandapis.com/v1/holidays?year=2026" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "year": 2026,
  "holidays": [
    {
      "date": "2026-01-01",
      "name": "New Year's Day"
    },
    {
      "date": "2026-01-19",
      "name": "Martin Luther King Jr. Day"
    },
    {
      "date": "2026-02-16",
      "name": "Washington's Birthday"
    },
    {
      "date": "2026-04-03",
      "name": "Good Friday"
    },
    {
      "date": "2026-05-25",
      "name": "Memorial Day"
    },
    {
      "date": "2026-06-19",
      "name": "Juneteenth"
…
Show full response
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "year": 2026,
  "holidays": [
    {
      "date": "2026-01-01",
      "name": "New Year's Day"
    },
    {
      "date": "2026-01-19",
      "name": "Martin Luther King Jr. Day"
    },
    {
      "date": "2026-02-16",
      "name": "Washington's Birthday"
    },
    {
      "date": "2026-04-03",
      "name": "Good Friday"
    },
    {
      "date": "2026-05-25",
      "name": "Memorial Day"
    },
    {
      "date": "2026-06-19",
      "name": "Juneteenth"
    },
    {
      "date": "2026-07-03",
      "name": "Independence Day",
      "observed_for": "2026-07-04"
    },
    {
      "date": "2026-09-07",
      "name": "Labor Day"
    },
    {
      "date": "2026-11-26",
      "name": "Thanksgiving Day"
    },
    {
      "date": "2026-12-25",
      "name": "Christmas Day"
    }
  ],
  "early_closes": [
    {
      "date": "2026-11-27",
      "name": "Day after Thanksgiving",
      "close": "13:00"
    },
    {
      "date": "2026-12-24",
      "name": "Christmas Eve",
      "close": "13:00"
    }
  ]
}

GETMarket Status

https://api-trading-calendar.dataandapis.com/v1/status

Query parameters

ParameterExample
date2026-11-27Optional

Example request

curl "https://api-trading-calendar.dataandapis.com/v1/status?date=2026-11-27" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "date": "2026-11-27",
  "is_trading_day": true,
  "reason": null,
  "early_close": true,
  "hours_et": {
    "open": "09:30",
    "close": "13:00"
  },
  "next_trading_day": null
}

GETNext Trading Day

https://api-trading-calendar.dataandapis.com/v1/next

Query parameters

ParameterExample
after2026-07-02Optional

Example request

curl "https://api-trading-calendar.dataandapis.com/v1/next?after=2026-07-02" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "after": "2026-07-02",
  "next_trading_day": "2026-07-06",
  "hours_et": {
    "open": "09:30",
    "close": "16:00"
  }
}

GETTrading Days In Range

https://api-trading-calendar.dataandapis.com/v1/trading-days

Query parameters

ParameterExample
datestrueOptional
from2026-11-01Required
to2026-11-30Required

Example request

curl "https://api-trading-calendar.dataandapis.com/v1/trading-days?dates=true&from=2026-11-01&to=2026-11-30" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "from": "2026-11-01",
  "to": "2026-11-30",
  "count": 20,
  "dates": [
    "2026-11-02",
    "2026-11-03",
    "2026-11-04",
    "2026-11-05",
    "2026-11-06",
    "2026-11-09",
    "2026-11-10",
    "2026-11-11",
    "2026-11-12",
    "2026-11-13",
    "2026-11-16",
    "2026-11-17",
    "2026-11-18",
    "2026-11-19",
    "2026-11-20",
    "2026-11-23",
    "2026-11-24",
    "2026-11-25",
    "2026-11-27",
    "2026-11-30"
  ]
…
Show full response
{
  "ok": true,
  "note": "US equity markets (NYSE/Nasdaq), rules-based; excludes unscheduled closures",
  "from": "2026-11-01",
  "to": "2026-11-30",
  "count": 20,
  "dates": [
    "2026-11-02",
    "2026-11-03",
    "2026-11-04",
    "2026-11-05",
    "2026-11-06",
    "2026-11-09",
    "2026-11-10",
    "2026-11-11",
    "2026-11-12",
    "2026-11-13",
    "2026-11-16",
    "2026-11-17",
    "2026-11-18",
    "2026-11-19",
    "2026-11-20",
    "2026-11-23",
    "2026-11-24",
    "2026-11-25",
    "2026-11-27",
    "2026-11-30"
  ]
}

Where the data comes from

Source
NYSE and Nasdaq published holiday and early-close rules, implemented as pure computation and verified against known years, for example 251 trading days in 2026.
Freshness
Computed on every call. Rule changes are shipped with API releases.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
4endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses — auto-completion in your IDE
  • Tracks the API in lockstep — new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://api-trading-calendar.dataandapis.com/v1/holidays',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Trading Calendar API · X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Query Parameters

year(Optional)
import axios from 'axios';

const url = 'https://api-trading-calendar.dataandapis.com/v1/holidays';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time — we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales →

Questions about Trading Calendar API

Ship Trading Calendar API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.