Skip to content
MarketCalendars.com
Sign up

API documentation

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

Get the trading weekdays

GET/api/v2/markets/{market}/trading-weekdays

The weekdays the market trades on, in force on a date (for example Sun to Thu), with the dates that pattern starts and ends

One request: one schedule. 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
dateoptionalqueryDate the schedule is in force, YYYY-MM-DD. Defaults to today in the market's time zoneExample: 2026-11-27

Example

curl https://marketcalendars.com/api/v2/markets/tase/trading-weekdays?date=2025-06-01 \
  -H "Authorization: Bearer mc_live_..."
GET /api/v2/markets/tase/trading-weekdays?date=2025-06-01200
{
  "market": "tase",
  "date": "2025-06-01",
  "effectiveFrom": null,
  "effectiveTo": "2026-01-04",
  "weekdays": [
    1,
    2,
    3,
    4,
    7
  ],
  "names": [
    "Monday",
    "Tuesday",
    "Wednesday",
    "Thursday",
    "Sunday"
  ],
  "label": "Mon–Thu, Sun",
  "weekmask": "1111001"
}

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

Response fields

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

FieldTypeDescription
marketstringMarket id
datestring (date)Date the pattern is in force
effectiveFromstring (date) | nullFirst date of this weekly pattern. Null when it starts before our data
effectiveTostring (date) | nullLast date of this weekly pattern. Null when it runs past our data
weekdaysinteger[]ISO weekdays, 1 = Monday
namesstring[]Weekday names
labelstringShort label for display
weekmaskstringSeven 0/1 flags, Monday first

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