South Star

Market Calendar Trading Sessions Holidays Business Days API

Free tier included · Finance
Market Calendar API for trading sessions, holidays, and business days.

Market Calendar API delivers exchange trading schedules for 50+ markets including NYSE, NASDAQ, LSE, HKEX, and more. It covers regular trading sessions, holidays, early closes, and TARGET2/SEPA settlement days — plus four powerful extras: real-time open/closed status, business day counting, date arithmetic with business days, and settlement calendar lookups (similar to T+2 settlement features). Whether you're scheduling trades, computing deadlines, or validating settlement dates, this API gives you authoritative reference data without external dependencies.

Built on pandas_market_calendars, the core data is offline and stateless. However, the `/extra/is-open-now` endpoint queries the current wall-clock time in the exchange's IANA timezone to determine real-time open/closed status. All other endpoints operate purely on embedded calendar data — no third-party calls, no databases, no request logs.

Use cases include: financial applications checking if markets are open right now; trading platforms validating execution windows; fintech apps computing settlement deadlines using TARGET2 business days; and enterprise schedulers counting business days across global exchanges.

Honest limits: date ranges are capped at 366 days and must fall within each calendar's known holiday coverage (typically 2016–2030). Exchanges like HKEX and EUREX use corrected calendars from exchange_calendars where the default pandas version is inaccurate. The `/extra/is-open-now` endpoint requires timezone data and returns 503 if unavailable.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and paths to the interactive docs and health endpoint.
GET/healthLiveness probe; returns status "ok" while the process is up.
GET/exchangesList all supported exchange calendar names/aliases (50+ markets).
GET/sessionsTrading sessions of an exchange between two dates (inclusive). Holidays and weekends excluded. Range max 366 days.
GET/is-openCheck if a given date is a trading session day for an exchange, with open/close times.
GET/holidaysHolidays and early closes for an exchange between two dates (inclusive).
GET/extra/business-daysCount business (trading session) days between two dates for an exchange. Start excluded, end included.
GET/extra/add-business-daysAdd or subtract business days from a start date for an exchange.
GET/extra/is-open-nowReal-time open/closed status of an exchange in its local timezone.
GET/extra/settlementTARGET2/SEPA settlement business days between two dates.

Quick start

curl -X GET "https://mktcal.p.rapidapi.com/exchanges" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: mktcal.p.rapidapi.com"

FAQ

Is the data real-time or cached?

Core calendar data (sessions, holidays, business days) is fully offline and embedded. Only `/extra/is-open-now` queries live timezone data to determine current open/closed status.

What date ranges are supported?

All date-based endpoints accept ranges up to 366 days. Dates must fall within each calendar's known holiday coverage, typically 2016–2030. Requests outside coverage return 422.

Are HKEX and EUREX calendars accurate?

Yes. Where pandas_market_calendars defaults are inaccurate (e.g., missing HKEX half-days), the API uses corrected calendars from exchange_calendars (XHKG, XEUR).

Does this API cover what other market calendar services do?

Plus four bonus endpoints: real-time open status, business day counting, date arithmetic, and TARGET2 settlement lookups.

Try Market Calendar Trading Sessions Holidays Business Days free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs