Skip to content
MarketCalendars.com
Sign up

API documentation

REST API v2: trading hours, holidays and settlement days as JSON over HTTPS

Get a year of non-settlement days

GET/api/v2/markets/{market}/non-settlement-days/{year}

Trading days on which the settlement system is closed, so trades settle a day later. Available for US, euro-area, UK and Japanese markets; elsewhere available is false with an explanation

One request: one year. A successful response counts as one request

Parameters

NameInDescription
marketrequiredpathMarket id, as listed by GET /markets (for example nyse, lse, cme-equity-futures)Example: nyse
yearrequiredpathCalendar year, YYYYExample: 2026

Example

curl https://marketcalendars.com/api/v2/markets/nyse/non-settlement-days/2026 \
  -H "Authorization: Bearer mc_live_..."
GET /api/v2/markets/nyse/non-settlement-days/2026200
{
  "market": "nyse",
  "year": 2026,
  "available": true,
  "explanation": null,
  "source": {
    "name": "Federal Reserve holidays (DTC)",
    "url": "https://www.federalreserve.gov/aboutthefed/k8.htm",
    "rule": "US federal holidays; a Sunday holiday closes the Monday after, a Saturday holiday closes nothing"
  },
  "cycle": "T+1",
  "days": [
    {
      "date": "2026-10-12",
      "reason": "Columbus Day"
    },
    {
      "date": "2026-11-11",
      "reason": "Veterans Day"
    }
  ]
}

A live response from the API. Lists longer than seven items are cut to three here

Response fields

NonSettlementDays object. Fields marked | null are always present and may be null

FieldTypeDescription
marketstringMarket id
yearintegerCalendar year
availablebooleanFalse when we have no public settlement calendar for the market
explanationstring | nullWhy no settlement days are published, when available is false
sourceobject | nullSettlement calendar the days come from
source.namestringSettlement calendar
source.urlstring (uri)Where the calendar is published
source.rulestringHow the settlement calendar is defined
cyclestring | nullSettlement cycle at the end of the year
daysobject[]Non-settlement days in date order. Empty when available is false
days[].datestring (date)Trading day on which trades do not settle
days[].reasonstringSettlement holiday

Errors

  • 400invalid-parameterA path or query parameter is malformed, such as a date that is not YYYY-MM-DD
  • 401unauthorizedThe Authorization header is missing, malformed, or names a revoked key
  • 404unknown-marketNo market has that id. GET /markets lists every id
  • 404out-of-rangeThe date or year is outside the market's coverage
  • 429rate-limitedThe key sent more requests in a minute than its plan's burst limit
  • 429quota-exceededThe plan's requests for this period are used up