Skip to content
Elco Dev

Insights · 4 min read

How to check market holidays and settlement dates in code

By Austin Hunter ·

Short answer

SettleDate is a JSON API for exchange holidays, trading hours and settlement dates across 29 exchanges, 52 countries and the US, euro and UK payment calendars, 2020 to 2030. Its free plan covers 5,000 calls a month, and free calendars answer 60 keyless calls an hour. It also builds in the EU move to T+1 settlement on 11 October 2027.

The questions it answers

Why settlement dates are tricky

A US trade can't settle on a day the Fed is closed, even when the NYSE is open (Columbus Day and Veterans Day). From 11 October 2027, EU trades move from T+2 to T+1, so trades on Friday the 8th and Monday the 11th both settle on Tuesday the 12th. SettleDate joins the right calendars and picks the cycle by trade date.

Where the data comes from

Exchange sessions come from the open-source exchange_calendars project, country holidays from python-holidays, and the Fed calendar from the Federal Reserve's published rule. Core exchanges are checked against the exchange's own holiday notices, and every calendar lists its source.

Questions

Is there a free tier?

Yes. 5,000 calls a month with all country calendars plus NYSE, Nasdaq, LSE, Xetra, Tokyo and the US Fed, TARGET2 and UK payment calendars. Free calendars also answer 60 keyless calls an hour.

What happens at my limit?

The API returns 429 until the 1st of the month. Nothing is billed automatically beyond your plan.

Can I get it through RapidAPI?

SettleDate is also listed on RapidAPI if you already bill through it, or you can get a free key directly on settledate.dev.

Want a fixed quote for your project?

Book a free 30-minute call. You'll leave with a clear idea of scope, timeline and cost.