Docs / Money and business
Derivative expiries API
NSE and BSE futures and options expiry dates, moved for holidays.
Every weekly and monthly expiry of a year from the exchange rules in force since 1 September 2025: NSE on Tuesdays (Nifty 50 weekly), BSE on Thursdays (Sensex weekly), monthly contracts on the month's last one; an expiry on a holiday moves to the trading day before.
https://api.dharun.devNo key needed for most600 units a minute, 3000 with a free keyThis page as MarkdownExpiry dates
GET/v1/expiries
| Parameter | Description |
|---|---|
exchangequery | Default nse. One of: nse, bse. |
yearquery | From 2025. Default this year. |
monthquery | 1 to 12. |
weeklyquery | false lists only the monthly expiries. |
curl
curl "https://api.dharun.dev/v1/expiries?exchange=nse&year=2026&month=3&utm_medium=docs"JavaScript
const response = await fetch("https://api.dharun.dev/v1/expiries?exchange=nse&year=2026&month=3&utm_medium=docs");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);Python
import requests
response = requests.get("https://api.dharun.dev/v1/expiries?exchange=nse&year=2026&month=3&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
raise RuntimeError(body["error"]["message"])
print(body["data"])Try it here
Change the values and send the request from your browser. Needs JavaScript.
Response, with lists and long text shortened
{
"data": [
{
"date": "2026-03-02",
"weekday": "Monday",
"kind": "weekly",
"contracts": "Nifty 50 weekly options",
"moved": "Tue 3 Mar is a holiday (Holi)"
},
{
"date": "2026-03-10",
"weekday": "Tuesday",
"kind": "weekly",
"contracts": "Nifty 50 weekly options"
},
{
"date": "2026-03-17",
"weekday": "Tuesday",
"kind": "weekly",
"contracts": "Nifty 50 weekly options"
}
],
"meta": {
"total": 5,
"source": {
"name": "Trading and clearing holidays, NSE equities",
"url": "https://www.nseindia.com/resources/exchange-communication-holidays",
"licence": "Official publication",
"version": "2026",
"retrieved": "2026-11-12T00:38:28Z",
"attribution": "Trading and clearing holidays from the National Stock Exchange of India, capital market segment."
},
"note": "Worked out from the exchange rules in force from 1 September 2025 (NSE Tuesdays, BSE Thursdays; monthly contracts on the month's last one) and the exchange's ho…"
}
}Data source
Trading and clearing holidays, NSE equities, 2026. Retrieved 2026-11-12T00:38:28Z. Licence: Official publication. Trading and clearing holidays from the National Stock Exchange of India, capital market segment.
Using an AI assistant? Connect the MCP server and it can call this API by itself. Want every endpoint on one bench? Open the playground.