Skip to content

API reference

API Documentation

22 endpoints, JSON or CSV, one API key. Every answer is a plain HTTP status and a predictable body. Wire it into a scheduler, a spreadsheet or a trading system.

Base URL
https://api.tradingcalendars.com/v1
Authentication
Authorization: Bearer YOUR_API_KEY
Formats
JSON, or CSV with format=csv on lists
Daily calls
Free: 10 · Paid plans: 100,000

Which endpoint do I need?

Getting started

Quick start

  1. Create a free account and confirm your email address.
  2. Create your API key on the dashboard (it is shown once: copy it then).
  3. Send it as a bearer token on every request.

Need a key? It's free: 10 calls a day, no card. Get a free API key →

Your first call
curl "https://api.tradingcalendars.com/v1/is-business-day?calendars=USD.FX,EUR.FX&date=2026-12-24" \
  -H "Authorization: Bearer YOUR_API_KEY"

Video

Watch it done, in under a minute

Sign up, copy the key and make two calls: an FX spot date, then a business day count.

More how-to videos on YouTube →

Authentication

Send your key in the Authorization: Bearer YOUR_API_KEY header.

Some tools cannot set headers, such as a spreadsheet web query. They can add api_key=YOUR_API_KEY to the URL instead. Use the header whenever you can: a key in a URL can end up in logs and browser history. Keep such a URL private, and replace the key from the Dashboard if it leaks.

Formats and limits

  • Dates are yyyy-mm-dd. Holiday lists start today by default. Set start and end for past years or a range.
  • CSV: holiday lists, weekends, market status and reference data also come as CSV. Add format=csv. Business-day and value-date answers are JSON only.
  • Daily calls: every response carries X-RateLimit-Limit and X-RateLimit-Remaining. The count resets at midnight UTC.
  • Downloads: paid plans can also download calendars as CSV from Dashboard → Downloads. Downloads do not count as calls.
Calendars included in each plan
PlanCalendars
FreeEvery calendar, 10 calls a day
Bank & CurrencyFX market, currency non-clearing, bank and payment system calendars
ExchangeExchange trading and settlement calendars, market status
All-in-oneEvery calendar

Paid plans have 100,000 calls a day. See pricing.

Errors

Errors come as JSON, for example {"detail": "Unknown calendar 'USD.FXX'. Did you mean USD.FX?"}. The message says what to do next.

CodeMeaning
200Success. The requested data is in the response body.
401The API key is missing or invalid.
403Email not confirmed, or the plan does not include this calendar family or reference data.
404The requested calendar, currency, market, centre or payment system does not exist.
422A query parameter is missing or malformed.
429The daily call quota for the plan has been reached.

Python client

Open source (MIT), standard library only, Python 3.10+. It returns plain Python dates. Source and examples on GitHub.

Python
pip install tradingcalendars-client

from tradingcalendars import TradingCalendars

tc = TradingCalendars(api_key="YOUR_API_KEY")  # or set TRADINGCALENDARS_API_KEY

tc.is_business_day(["TARGET2.PAY", "FEDWIRE.PAY"], "2026-12-28")   # True
tc.add_business_days("XNYS.SETTLE", "2026-12-24", 1)   # date(2026, 12, 28)
tc.holidays("XLON.TRADE", start="2026-12-01", end="2026-12-31")   # with early closes
tc.closure_dates("XNYS.TRADE")   # ready for pandas CustomBusinessDay

AI assistants (MCP)

Claude, ChatGPT, Cursor and other AI assistants can use the API through our hosted MCP server. Its tools cover holiday lists, business days, weekends, market status and reference data.

Add your API key: your plan and daily limit apply, and each tool call counts as one call. Without a key, a short trial lets an agent try it first. ChatGPT users can add our app from ChatGPT's app directory. Setup and example prompts.

.cursor/mcp.json
{
  "mcpServers": {
    "tradingcalendars": {
      "url": "https://api.tradingcalendars.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

8 endpoints

Holiday calendars

The closed days of any calendar: FX markets, currency settlement, banks, payment systems and exchanges. Every list has the same rows. Half days, early closes and estimated dates are flagged.

Holidays by Calendar Code

GET/v1/holidays

The holiday list of any calendar, by its code: FX market, currency settlement, bank, payment system or exchange. The six endpoints below return the same list, looked up by currency, centre, payment system or exchange instead.

Plans:all, for the calendars your plan covers

Parameters

calendarrequired

Calendar code, e.g. USD.FX, USNYC.BANK or XNYS.TRADE.

Values: code

format

Response format.

Values: json, csv · Default: json

start

First date to include. Defaults to today; set an earlier date to include history.

Values: yyyy-mm-dd · Default: today

end

Last date to include. Defaults to no limit (all published forward dates).

Values: yyyy-mm-dd · Default: no limit

Response fields 23
meta.calendar_codestring
Stable calendar code, e.g. USD.FX.
meta.calendar_namestring
Display name.
meta.calendar_typestring
One of the six published categories.
meta.country_codestring | null
ISO 3166-1 alpha-2 country.
meta.currency_codestring | null
ISO 4217 currency, when the calendar is currency-anchored.
meta.exchange_micstring | null
ISO 10383 MIC, when the calendar is exchange-anchored.
meta.financial_centre_codestring | null
UN/LOCODE, when the calendar is a bank calendar.
meta.payment_system_codestring | null
Payment-system code, when applicable.
meta.timezonestring | null
IANA timezone.
data[].datedate
The holiday date.
data[].original_datedate | null
Official date before an observance shift.
data[].eventstring
English holiday name.
data[].name_localstring | null
Local-language name.
data[].is_observedboolean
True when the day off is not the official date of the holiday.
data[].is_estimatedboolean
True when the date is not yet confirmed and may change.
data[].is_half_dayboolean
True when the session is shortened rather than fully closed.
data[].half_daystring
NONE, HALF_AM, HALF_PM or EARLY_CLOSE. A partial day is still a business day.
data[].early_close_timetime | null
Local closing time when half_day is EARLY_CLOSE.
data[].late_open_timetime | null
Local opening time when half_day is HALF_AM (a late open). Null means noon.
data[].is_bridgeboolean
True when the day joins a holiday to a weekend.
data[].sourcestring | null
The official listing or notice for the date: the issuer's holiday page, or the decree or notice URL for an exceptional date.
data[].notesstring | null
Reserved; currently always null.
countinteger
Number of holidays returned.
Request
curl "https://api.tradingcalendars.com/v1/holidays?calendar=XNYS.TRADE&start=2027-11-01&end=2027-11-30" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "meta": {
    "calendar_code": "XNYS.TRADE",
    "calendar_name": "NYSE Trading",
    "calendar_type": "EXCHANGE_TRADING",
    "country_code": "US",
    "currency_code": null,
    "exchange_mic": "XNYS",
    "financial_centre_code": null,
    "payment_system_code": null,
    "timezone": "America/New_York"
  },
  "data": [
    {
      "date": "2027-11-25",
      "original_date": null,
      "event": "Thanksgiving Day",
      "name_local": null,
      "is_observed": false,
      "is_estimated": false,
      "is_half_day": false,
      "half_day": "NONE",
      "early_close_time": null,
      "late_open_time": null,
      "is_bridge": false,
      "source": null,
      "notes": null
    },
    {
      "date": "2027-11-26",
      "original_date": null,
      "event": "Day After Thanksgiving",
      "name_local": null,
      "is_observed": false,
      "is_estimated": false,
      "is_half_day": true,
      "half_day": "EARLY_CLOSE",
      "early_close_time": "13:00:00",
      "late_open_time": null,
      "is_bridge": false,
      "source": null,
      "notes": null
    }
  ],
  "count": 2
}

FX Market Holidays

GET/v1/fx-market-holidays

Days on which the FX market for a currency does not trade. Distinct from non-clearing days: trading can close while clearing continues.

Plans:FreeBank & CurrencyAll-in-one

Parameters

currencyrequired

Three-letter currency code, for example USD.

Values: ISO 4217

Also takes start, end and format. The response is the same holiday list as Holidays by Calendar Code.

Request
curl "https://api.tradingcalendars.com/v1/fx-market-holidays?currency=USD&start=2027-01-01&end=2027-12-31" \
  -H "Authorization: Bearer YOUR_API_KEY"

Currency Non-Clearing Days

GET/v1/currency-non-clearing-days

Days on which the selected currency cannot clear or settle. Use it to schedule payments and settlements in that currency. For FX spot dates, use FX Value Date.

Plans:FreeBank & CurrencyAll-in-one

Parameters

currencyrequired

Three-letter currency code, for example USD.

Values: ISO 4217

Also takes start, end and format. The response is the same holiday list as Holidays by Calendar Code.

Request
curl "https://api.tradingcalendars.com/v1/currency-non-clearing-days?currency=USD&start=2027-01-01&end=2027-12-31" \
  -H "Authorization: Bearer YOUR_API_KEY"

Bank Holidays

GET/v1/bank-holidays

Days on which retail and commercial banks in a financial centre are closed, so domestic payments may not clear.

Plans:FreeBank & CurrencyAll-in-one

Parameters

financial_centrerequired

Five-character UN/LOCODE without a space, e.g. USNYC.

Values: UN/LOCODE

Also takes start, end and format. The response is the same holiday list as Holidays by Calendar Code.

Request
curl "https://api.tradingcalendars.com/v1/bank-holidays?financial_centre=USNYC" \
  -H "Authorization: Bearer YOUR_API_KEY"

Payment System Holidays

GET/v1/payment-system-holidays

Days on which a payment system such as Fedwire or TARGET2 does not process or settle.

Plans:FreeBank & CurrencyAll-in-one

Parameters

payment_systemrequired

Payment-system code from List Payment Systems, e.g. FEDWIRE or TARGET2.

Values: code

Also takes start, end and format. The response is the same holiday list as Holidays by Calendar Code.

Request
curl "https://api.tradingcalendars.com/v1/payment-system-holidays?payment_system=FEDWIRE" \
  -H "Authorization: Bearer YOUR_API_KEY"

Exchange Trading Holidays

GET/v1/trading-holidays

Days on which an exchange is closed for trading, including shortened sessions flagged with half_day.

Plans:FreeExchangeAll-in-one

Parameters

marketrequired

ISO 10383 market identifier code, e.g. XNYS.

Values: MIC

Also takes start, end and format. The response is the same holiday list as Holidays by Calendar Code.

Request
curl "https://api.tradingcalendars.com/v1/trading-holidays?market=XNYS" \
  -H "Authorization: Bearer YOUR_API_KEY"

Exchange Settlement Holidays

GET/v1/settlement-holidays

Days on which clearing and settlement of trades cannot take place on an exchange.

Plans:FreeExchangeAll-in-one

Parameters

marketrequired

ISO 10383 market identifier code, e.g. XNYS.

Values: MIC

Also takes start, end and format. The response is the same holiday list as Holidays by Calendar Code.

Request
curl "https://api.tradingcalendars.com/v1/settlement-holidays?market=XNYS" \
  -H "Authorization: Bearer YOUR_API_KEY"

Weekends

GET/v1/weekends

Weekend weekday definitions (with validity ranges) and working-weekend dates that are business days despite falling on a weekend.

Plans:all, for the calendars your plan covers

Parameters

calendarrequired

Calendar code, e.g. USD.FX.

Values: code

format

Response format.

Values: json, csv · Default: json

Response fields 16
meta.calendar_codestring
Stable calendar code, e.g. USD.FX.
meta.calendar_namestring
Display name.
meta.calendar_typestring
One of the six published categories.
meta.country_codestring | null
ISO 3166-1 alpha-2 country.
meta.currency_codestring | null
ISO 4217 currency, when the calendar is currency-anchored.
meta.exchange_micstring | null
ISO 10383 MIC, when the calendar is exchange-anchored.
meta.financial_centre_codestring | null
UN/LOCODE, when the calendar is a bank calendar.
meta.payment_system_codestring | null
Payment-system code, when applicable.
meta.timezonestring | null
IANA timezone.
weekend_daysinteger[] | null
Weekend weekdays in force today. ISO weekdays, 1 = Monday, 7 = Sunday.
weekend_definitions[].weekend_daysinteger[]
ISO weekdays for that validity range.
weekend_definitions[].valid_fromdate | null
First date the definition applies.
weekend_definitions[].valid_todate | null
Last date the definition applies.
working_weekends[].datedate
Weekend date that is a business day.
working_weekends[].notestring | null
Optional note on the working weekend.
countinteger
Number of working weekends returned.
Request
curl "https://api.tradingcalendars.com/v1/weekends?calendar=USD.FX" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "meta": {
    "calendar_code": "USD.FX",
    "calendar_name": "USD FX Market",
    "calendar_type": "CURRENCY_FX",
    "country_code": "US",
    "currency_code": "USD",
    "exchange_mic": null,
    "financial_centre_code": null,
    "payment_system_code": null,
    "timezone": "America/New_York"
  },
  "weekend_days": [6, 7],
  "weekend_definitions": [
    {
      "weekend_days": [6, 7],
      "valid_from": null,
      "valid_to": null
    }
  ],
  "working_weekends": [],
  "count": 0
}

3 endpoints

Business days

Direct answers on one or several calendars at once. A date is a business day only when every calendar you pass is open. Each answer says why a day is closed.

Is Business Day

GET/v1/is-business-day

Is a date a business day in one or several calendars? Open only when every calendar is open. Applies each calendar's own weekend (including past changes), its holidays and its working weekends. Half days and early closes count as business days and are flagged.

Plans:all, for the calendars your plan covers

Parameters

calendarsrequired

One or more codes, comma-separated, e.g. USD.FX,EUR.FX for a EUR/USD trade.

Values: Calendar codes

date

Date to check.

Values: yyyy-mm-dd · Default: today

Response fields 9
is_business_dayboolean
True when the date is open in every calendar.
calendars[].is_business_dayboolean
Answer for that calendar alone.
calendars[].reasonstring
holiday, weekend or working_weekend when relevant.
calendars[].holidaystring
Holiday name when closed (or the half-day event).
calendars[].half_daystring
HALF_AM, HALF_PM or EARLY_CLOSE on a partial day.
calendars[].early_close_timeHH:MM
Local closing time on an early close.
calendars[].late_open_timeHH:MM
Local opening time on a late open.
data_throughobject
Last stored holiday date per calendar.
warningsstring[]
Present when a date is past a calendar's stored data.
Request
curl "https://api.tradingcalendars.com/v1/is-business-day?calendars=USD.FX,EUR.FX&date=2026-11-26" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "date": "2026-11-26",
  "weekday": "Thursday",
  "is_business_day": false,
  "calendars": [
    {
      "calendar": "USD.FX",
      "is_business_day": false,
      "reason": "holiday",
      "holiday": "Thanksgiving Day",
      "is_estimated": false
    },
    {"calendar": "EUR.FX", "is_business_day": true}
  ]
}

Add Business Days

GET/v1/add-business-days

The date N business days after (or before) a start date across one or several calendars: settlement dates (T+1, T+2), payment due dates, deadlines. Lists every non-business day it skipped and why. For FX spot dates with market rules, use FX Value Date.

Plans:all, for the calendars your plan covers

Parameters

calendarsrequired

One or more codes, comma-separated.

Values: Calendar codes

daysrequired

Business days to add; negative goes back. 0 rolls a non-business date forward to the next business day.

Values: integer

date

Start date.

Values: yyyy-mm-dd · Default: today

Response fields 5
resultdate
The resulting business day.
result_detailobject[]
Per-calendar detail for the result (half-day flags).
skipped[]object[]
Non-business days passed over, with closed_for reasons.
skipped_countinteger
Number of skipped days.
data_throughobject
Last stored holiday date per calendar.
Request
curl "https://api.tradingcalendars.com/v1/add-business-days?calendars=USD.FX,EUR.FX&date=2026-12-23&days=2" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "start": "2026-12-23",
  "days": 2,
  "result": "2026-12-28",
  "result_weekday": "Monday",
  "result_detail": [
    {"calendar": "USD.FX", "is_business_day": true},
    {"calendar": "EUR.FX", "is_business_day": true}
  ],
  "skipped": [
    {
      "date": "2026-12-25",
      "weekday": "Friday",
      "closed_for": [
        "Christmas Day (USD.FX)",
        "Christmas Day (EUR.FX)"
      ]
    },
    {
      "date": "2026-12-26",
      "weekday": "Saturday",
      "closed_for": [
        "weekend (USD.FX)",
        "St. Stephen's Day (EUR.FX)"
      ]
    },
    {
      "date": "2026-12-27",
      "weekday": "Sunday",
      "closed_for": [
        "weekend (USD.FX)",
        "weekend (EUR.FX)"
      ]
    }
  ],
  "skipped_count": 3
}

Business Days Between

GET/v1/business-days-between

How many business days lie between two dates across one or several calendars. The start date is counted and the end date is not (like numpy.busday_count); a range up to about ten years.

Plans:all, for the calendars your plan covers

Parameters

calendarsrequired

One or more codes, comma-separated.

Values: Calendar codes

startrequired

First date, counted.

Values: yyyy-mm-dd

endrequired

Last date, not counted. Before start gives a negative count.

Values: yyyy-mm-dd

Response fields 4
business_daysinteger
Business days in the range.
calendar_daysinteger
Calendar days in the range.
non_business_days[]object[]
Closed days in the range with reasons (first 200).
non_business_days_countinteger
Total closed days in the range.
Request
curl "https://api.tradingcalendars.com/v1/business-days-between?calendars=USD.FX,EUR.FX&start=2026-12-21&end=2026-12-28" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "start": "2026-12-21",
  "end": "2026-12-28",
  "convention": "start included, end excluded",
  "business_days": 4,
  "calendar_days": 7,
  "non_business_days": [
    {
      "date": "2026-12-25",
      "weekday": "Friday",
      "closed_for": [
        "Christmas Day (USD.FX)",
        "Christmas Day (EUR.FX)"
      ]
    }
  ],
  "non_business_days_count": 3
}

5 endpoints

Value dates and schedules

Dates with market rules built in: FX spot, tom and forward dates, stock settlement dates, business day conventions, and full cash-flow schedules.

FX Value Date

GET/v1/fx-value-date

Spot (T+2; T+1 for USD/CAD, USD/TRY and USD/PHP) or tom value date for a currency pair, with market conventions. Each currency counts its own business days; spot is the later date, open in both. The USD rule ignores a US holiday before the value date, except against MXN and the South American currencies (BRL, ARS, CLP, COP, PEN). A cross takes the later of its two spot dates against USD, open in USD too. Every day in between is explained.

Plans:FreeBank & CurrencyAll-in-one

Parameters

pairrequired

Two ISO 4217 currency codes.

Values: EURUSD or EUR/USD

trade_date

Trade date.

Values: yyyy-mm-dd · Default: today

tenor

Spot or tom (T+1).

Values: spot, tom · Default: spot

Response fields 7
value_datestring
The value date.
laginteger
Business days counted (2 for spot, 1 for tom and T+1 pairs).
days[]object[]
Each day after the trade date: which currency is closed and why, counts (each currency's own business-day count reached that day), counted, and usd_rule_applied.
count_datesobject
The day each currency reaches its own count (USD only when it decides the date).
rulesobject
t_plus_1_pair, usd_rule, usd_holidays_count (MXN and South American currencies) and usd_checked_for_cross.
joint_calendar_datestring
What a plain count on both calendars would give, when different.
calendarsstring[]
FX calendars used (USD.FX added for crosses).
Request
curl "https://api.tradingcalendars.com/v1/fx-value-date?pair=EURUSD&trade_date=2026-11-25" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "pair": "EURUSD",
  "trade_date": "2026-11-25",
  "tenor": "spot",
  "lag": 2,
  "value_date": "2026-11-27",
  "value_weekday": "Friday",
  "calendars": ["EUR.FX", "USD.FX"],
  "count_dates": {"EUR": "2026-11-27"},
  "days": [
    {
      "date": "2026-11-26",
      "closed": {"USD": "Thanksgiving Day"},
      "counts": {"EUR": 1},
      "counted": true,
      "day": 1,
      "usd_rule_applied": true
    },
    {
      "date": "2026-11-27",
      "closed": {},
      "counts": {"EUR": 2},
      "counted": true,
      "day": 2
    }
  ],
  "joint_calendar_date": "2026-11-30"
}

FX Forward Date

GET/v1/fx-forward-date

Forward value dates for a currency pair, counted from spot: weeks roll to the next business day; months and years use modified following, and the end-end rule when spot is the last business day of its month. A business day is open in both currencies (and USD for a cross).

Plans:FreeBank & CurrencyAll-in-one

Parameters

pairrequired

Two ISO 4217 currency codes.

Values: EURUSD or EUR/USD

trade_date

Trade date.

Values: yyyy-mm-dd · Default: today

tenor

One tenor, or omit for the usual set.

Values: 1W … 52W, 1M … 24M, 1Y, 2Y · Default: 1W, 2W, 1M, 2M, 3M, 6M, 9M, 1Y

Response fields 3
spot_datestring
The spot date the forwards start from.
spot_is_month_endboolean
True when spot is the last business day of its month (end-end applies).
forwards[]object[]
tenor, date, unadjusted date, rule applied (following, modified_following, end_end) and why the unadjusted date was closed.
Request
curl "https://api.tradingcalendars.com/v1/fx-forward-date?pair=EURUSD&trade_date=2026-10-28&tenor=1M" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "pair": "EURUSD",
  "trade_date": "2026-10-28",
  "spot_date": "2026-10-30",
  "spot_is_month_end": true,
  "calendars": ["EUR.FX", "USD.FX"],
  "forwards": [
    {
      "tenor": "1M",
      "date": "2026-11-30",
      "weekday": "Monday",
      "unadjusted": "2026-11-30",
      "rule": "end_end"
    }
  ]
}

Settlement Date

GET/v1/settlement-date

The settlement date of a stock trade: the market's cycle (T+1 or T+2, with dated changes such as UK and EU T+1 from 11 October 2027) counted on the exchange's settlement calendar. Every day in between is explained, including days when the market trades but settlement is closed.

Plans:FreeExchangeAll-in-one

Parameters

marketrequired

ISO 10383 code: XNYS, XLON, XETR, XPAR, XSWX, XNSE, XTKS, XHKG or XSES.

Values: MIC

trade_date

Trade date. Must be a trading day on the exchange.

Values: yyyy-mm-dd · Default: today

Response fields 6
settlement_datestring
The settlement date.
cycleinteger
Business days counted (1 for T+1, 2 for T+2) on this trade date.
days[]object[]
Each day after the trade date: counted or skipped, and why settlement was closed.
trading_calendar_datestring
What a count on the trading calendar would give, when different.
cycle_changeobject
The next announced cycle change for this market, if any.
cycle_sourcestring
Official source of the cycle.
Request
curl "https://api.tradingcalendars.com/v1/settlement-date?market=XNYS&trade_date=2026-11-10" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "market": "XNYS",
  "trade_date": "2026-11-10",
  "cycle": 1,
  "settlement_date": "2026-11-12",
  "settlement_weekday": "Thursday",
  "calendars": ["XNYS.TRADE", "XNYS.SETTLE"],
  "days": [
    {
      "date": "2026-11-11",
      "counted": false,
      "closed": "Veterans Day"
    },
    {
      "date": "2026-11-12",
      "counted": true,
      "day": 1
    }
  ],
  "trading_calendar_date": "2026-11-11"
}

Adjust Date

GET/v1/adjust-date

Move a date to a business day with a business day convention (ISDA): following, modified following, preceding or modified preceding, on one calendar or a joint calendar. For payment, fixing, reset and maturity dates of swaps, loans and bonds.

Plans:all, for the calendars your plan covers

Parameters

calendarsrequired

One or more codes, comma-separated; the date must be open in all of them.

Values: Calendar codes

daterequired

The date to adjust.

Values: yyyy-mm-dd

convention

Modified conventions never leave the month: they turn back (or forward) instead.

Values: following, modified_following, preceding, modified_preceding, unadjusted (or F, MF, P, MP) · Default: modified_following

Response fields 4
adjusteddate
The adjusted business day.
movedboolean
True when the date was not a business day.
non_business_days[]object[]
Closed days between the date and the result, with reasons.
data_throughobject
Last stored holiday date per calendar.
Request
curl "https://api.tradingcalendars.com/v1/adjust-date?calendars=USD.FX,GBP.FX&date=2027-05-29&convention=modified_following" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "date": "2027-05-29",
  "weekday": "Saturday",
  "convention": "modified_following",
  "adjusted": "2027-05-28",
  "adjusted_weekday": "Friday",
  "moved": true,
  "non_business_days": [
    {
      "date": "2027-05-29",
      "weekday": "Saturday",
      "closed_for": [
        "weekend (USD.FX)",
        "weekend (GBP.FX)"
      ]
    }
  ]
}
// With convention=following the answer is
// 2027-06-01: Monday 31 May is Memorial Day (USD.FX)
// and the Spring bank holiday (GBP.FX).

Cash-Flow Schedule

GET/v1/schedule

The adjusted schedule of a swap, loan or bond: accrual periods rolled from the maturity (or the start), each date adjusted with a business day convention on a joint calendar, with payment dates (payment lag) and rate fixing dates (fixing lag on its own calendar). Stubs and the end-of-month rule included; up to 60 years.

Plans:all, for the calendars your plan covers

Parameters

calendarsrequired

Calendars for accrual and payment dates, comma-separated.

Values: Calendar codes

startrequired

Effective date.

Values: yyyy-mm-dd

endrequired

Maturity date.

Values: yyyy-mm-dd

frequency

Period length.

Values: 1M, 3M, 6M, 12M, 1Y … · Default: 3M

convention

Business day convention for period dates.

Values: following, modified_following, preceding, modified_preceding, unadjusted · Default: modified_following

stub

Front stubs roll back from the maturity (usual for swaps); back stubs roll forward from the start.

Values: short_front, long_front, short_back, long_back · Default: short_front

end_of_month

When the roll date (the maturity; the start for back stubs) is the last business day of its month, every date is the last business day of its month (ISDA FRN convention, QuantLib).

Values: true, false · Default: false

payment_lag

Business days from period end to payment.

Values: 0–10 · Default: 0

fixing_lag

Business days from period start back to the rate fixing. Omit for no fixing dates.

Values: 0–10 · Default: none

fixing_calendars

Calendars for fixing dates (e.g. the index's own calendar).

Values: Calendar codes · Default: calendars

Response fields 5
periods[]object[]
Per period: start and end (unadjusted and adjusted), payment_date, fixing_date, accrual_days, is_stub, and end_moved_from (why the end date moved). A stub that vanishes once adjusted is merged into the next period.
end_of_month_appliedboolean
Whether the month-end rule applied (end_of_month and a month-end roll date).
period_countinteger
Number of periods.
data_throughobject
Last stored holiday date per calendar.
warnings[]string[]
Dates past stored data, or moved by holidays that are still estimated.
Request
curl "https://api.tradingcalendars.com/v1/schedule?calendars=USD.FX,GBP.FX&start=2026-11-26&end=2027-11-26&frequency=3M&payment_lag=2&fixing_lag=2&fixing_calendars=GBP.FX" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "start": "2026-11-26",
  "end": "2027-11-26",
  "frequency": "3M",
  "convention": "modified_following",
  "stub": "short_front",
  "periods": [
    {
      "period": 1,
      "start_unadjusted": "2026-11-26",
      "end_unadjusted": "2027-02-26",
      "start": "2026-11-27",
      "end": "2027-02-26",
      "payment_date": "2027-03-02",
      "accrual_days": 91,
      "is_stub": false,
      "fixing_date": "2026-11-25"
    },
    {
      "period": 3,
      "start_unadjusted": "2027-05-26",
      "end_unadjusted": "2027-08-26",
      "start": "2027-05-26",
      "end": "2027-08-26",
      "payment_date": "2027-08-31",
      "accrual_days": 92,
      "is_stub": false,
      "fixing_date": "2027-05-24"
    }
  ],
  "period_count": 4
}
// Period 1 starts on 27 Nov: 26 Nov 2026 is
// Thanksgiving (USD.FX).
// Period 3 pays on 31 Aug: 30 Aug 2027 is the UK
// Summer bank holiday.

1 endpoint

Market status

Is an exchange open right now? Live status for every exchange, with today's hours, holidays, and the day's sessions, such as auctions and after-hours trading.

Market Status

GET/v1/market-status

Live open, half-day or closed status for every exchange, with today's hours and the next open and close times. The status follows continuous trading. session names the session running now, such as an auction or after-hours trading, and sessions_today lists every session of the day. Requires exchange data on your plan (Free, Exchange Trading & Settlement, or All-in-one).

Plans:FreeExchangeAll-in-one

Parameters

market

ISO 10383 market identifier code, e.g. XNYS. Omit to get every exchange.

Values: MIC · Default: all exchanges

format

Response format.

Values: json, csv · Default: json

Response fields 19
as_of_utcdatetime
UTC instant the statuses were computed at.
data[].marketstring
ISO 10383 market identifier code.
data[].exchange_namestring
Exchange name.
data[].country_codestring | null
Two-letter country code.
data[].exchange_timezonestring | null
IANA timezone of the exchange.
data[].local_timestring
Current HH:MM at the exchange.
data[].statusstring
open, half (open on a short day) or closed. It follows continuous trading only: an auction or after-hours session alone reads closed.
data[].hoursstring | null
Today's continuous trading in local time, holidays applied: "09:00–11:30, 12:30–15:25". "24:00" ends a session at midnight. Null when there is none.
data[].holiday_eventstring | null
Trading holiday affecting today, when there is one.
data[].half_daystring | null
NONE, HALF_AM, HALF_PM or EARLY_CLOSE for today's holiday.
data[].early_close_timetime | null
Local closing time when today is an early close.
data[].late_open_timetime | null
Local opening time when today opens late.
data[].is_estimatedboolean
True when today's holiday date is still estimated.
data[].next_open_atdatetime | null
Next start of continuous trading, ISO 8601 with the exchange's UTC offset.
data[].next_close_atdatetime | null
End of the current or next stretch of continuous trading.
data[].sessionstring | null
The session running now: pre_open, opening_auction, regular, intraday_auction, closing_auction, trading_at_last, pre_market, post_market or overnight. regular is continuous trading, and it wins when two sessions overlap. closed when none runs. Null when we have no session times for the exchange.
data[].session_ends_atdatetime | null
When the current session ends. Back-to-back sessions of the same phase count as one. Null when closed.
data[].sessions_today[]array
Every session touching the exchange's local day, in order: phase, start and end (ISO 8601), label (the exchange's own name), note, and schedule (a named timetable, such as "Ramadan 2027"). Holidays applied: no session starts on a full holiday. An overnight session belongs to the day it leads into. On an early close, continuous trading stops early, and later sessions move with it unless the exchange skips them on short days. CSV joins phase and times into one cell.
countinteger
Number of exchanges returned.
Request
curl "https://api.tradingcalendars.com/v1/market-status?market=XNAS" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "as_of_utc": "2026-12-01T10:12:04+00:00",
  "data": [
    {
      "market": "XNAS",
      "status": "closed",
      "session": "pre_market",
      "session_ends_at": "2026-12-01T09:30:00-05:00",
      "local_time": "05:12",
      "hours": "09:30–16:00",
      "next_open_at": "2026-12-01T09:30:00-05:00",
      "next_close_at": "2026-12-01T16:00:00-05:00",
      "sessions_today": [
        {
          "phase": "pre_market",
          "start": "2026-12-01T04:00:00-05:00",
          "end": "2026-12-01T09:30:00-05:00",
          "label": "Pre-market",
          "note": null,
          "schedule": null
        },
        {
          "phase": "regular",
          "start": "2026-12-01T09:30:00-05:00",
          "end": "2026-12-01T16:00:00-05:00",
          "label": null,
          "note": null,
          "schedule": null
        },
        {
          "phase": "post_market",
          "start": "2026-12-01T16:00:00-05:00",
          "end": "2026-12-01T20:00:00-05:00",
          "label": "After hours",
          "note": null,
          "schedule": null
        }
      ],
      "exchange_name": "NASDAQ - ALL MARKETS",
      "country_code": "US",
      "exchange_timezone": "America/New_York",
      "holiday_event": null,
      "half_day": null,
      "early_close_time": null,
      "late_open_time": null,
      "is_estimated": false
    }
  ],
  "count": 1
}

5 endpoints

Reference data

The codes to use in the other calls: calendars, currencies, exchanges, financial centres and payment systems.

List Calendars

GET/v1/calendars

Every published calendar, optionally filtered by category.

Plans:all, for the calendars your plan covers

Parameters

calendar_type

Restrict the list to one category.

Values: CURRENCY_FX, CURRENCY_NON_CLEARING, FINANCIAL_CENTRE, PAYMENT_SYSTEM, EXCHANGE_TRADING, EXCHANGE_SETTLEMENT

format

Response format.

Values: json, csv · Default: json

Response fields 9
data[].calendar_codestring
Stable calendar code.
data[].calendar_namestring
Display name.
data[].calendar_typestring
Published category.
data[].country_codestring | null
ISO 3166-1 alpha-2 country.
data[].currency_codestring | null
ISO 4217 currency when applicable.
data[].exchange_micstring | null
ISO 10383 MIC when applicable.
data[].financial_centre_codestring | null
UN/LOCODE when applicable.
data[].payment_system_codestring | null
Payment-system code when applicable.
data[].timezonestring | null
IANA timezone.
Request
curl "https://api.tradingcalendars.com/v1/calendars?calendar_type=CURRENCY_FX" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "calendar_code": "USD.FX",
      "calendar_name": "USD FX Market",
      "calendar_type": "CURRENCY_FX",
      "country_code": "US",
      "currency_code": "USD",
      "exchange_mic": null,
      "financial_centre_code": null,
      "payment_system_code": null,
      "timezone": "America/New_York"
    }
  ],
  "count": 1
}

List Currencies

GET/v1/currencies

Every currency we cover, with its issuer.

Plans:FreeBank & CurrencyAll-in-one

Parameters

format

Response format.

Values: json, csv · Default: json

Response fields 4
data[].currency_codestring
ISO 4217 code.
data[].currency_namestring
Official name in English.
data[].issuing_country_codestring | null
Issuer country. Null for EUR.
data[].issuer_namestring | null
Central bank or issuing authority.
Request
curl "https://api.tradingcalendars.com/v1/currencies" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "currency_code": "USD",
      "currency_name": "United States dollar",
      "issuing_country_code": "US",
      "issuer_name": "Federal Reserve System"
    }
  ],
  "count": 1
}

List Exchanges

GET/v1/exchanges

Every exchange we cover, keyed by ISO 10383 MIC.

Plans:FreeExchangeAll-in-one

Parameters

format

Response format.

Values: json, csv · Default: json

Response fields 5
data[].micstring
ISO 10383 market identifier code.
data[].exchange_namestring
Exchange name.
data[].country_codestring | null
Two-letter country code.
data[].citystring | null
City.
data[].timezonestring | null
IANA timezone.
Request
curl "https://api.tradingcalendars.com/v1/exchanges" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "mic": "XNYS",
      "exchange_name": "New York Stock Exchange",
      "country_code": "US",
      "city": "New York",
      "timezone": "America/New_York"
    }
  ],
  "count": 1
}

List Financial Centres

GET/v1/financial-centres

Every financial centre we cover, keyed by UN/LOCODE.

Plans:FreeBank & CurrencyAll-in-one

Parameters

format

Response format.

Values: json, csv · Default: json

Response fields 5
data[].financial_centre_codestring
UN/LOCODE without a space, e.g. USNYC.
data[].financial_centre_namestring
Financial centre name.
data[].country_codestring
Two-letter country code.
data[].subdivision_codestring | null
ISO 3166-2 subdivision when relevant.
data[].timezonestring | null
IANA timezone.
Request
curl "https://api.tradingcalendars.com/v1/financial-centres" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "financial_centre_code": "USNYC",
      "financial_centre_name": "New York",
      "country_code": "US",
      "subdivision_code": "US-NY",
      "timezone": "America/New_York"
    }
  ],
  "count": 1
}

List Payment Systems

GET/v1/payment-systems

Every payment system we cover, such as Fedwire and TARGET2.

Plans:FreeBank & CurrencyAll-in-one

Parameters

format

Response format.

Values: json, csv · Default: json

Response fields 6
data[].payment_system_codestring
Stable payment-system code.
data[].payment_system_namestring
System name.
data[].operatorstring | null
Operator.
data[].system_typestring
RTGS, ACH, NET_SETTLEMENT, CSD or FX_SETTLEMENT.
data[].currency_codestring | null
ISO 4217 currency when the system is single-currency.
data[].country_codestring | null
Country, if the system is national.
Request
curl "https://api.tradingcalendars.com/v1/payment-systems" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "payment_system_code": "FEDWIRE",
      "payment_system_name": "Fedwire Funds Service",
      "operator": "Federal Reserve Banks",
      "system_type": "RTGS",
      "currency_code": "USD",
      "country_code": "US"
    }
  ],
  "count": 1
}