Made on Earth Donate

Is NSE / BSE open? API

Whether NSE / BSE is open now (or at any moment), the current and next session, the next open and close, and the holidays ahead.

Whether the NSE / BSE regular session is open, which session is running (extended hours included), when the next opens and closes, and the holidays and early closes coming up. Holidays are NSE’s official trading holidays for the cash market, refreshed daily. NSE publishes one calendar year at a time, so for later dates only weekends are known: see holidaysKnownUntil. Special sessions such as Muhurat trading aren’t included.

Endpoint

GET  https://supertoolshq.com/api/v1/india/market-hours/
POST https://supertoolshq.com/api/v1/india/market-hours/   (form-encoded body)

Parameters

NameValuesDefaultMeaning
atTimenowThe moment to answer for: ISO 8601 with an offset or Z (2026-11-16T15:30:00Z), without one for India time (2026-11-16T10:30), or Unix seconds. Years 2000–2099.

Sessions

In India time (IST). A session whose end is before its start runs past midnight, and its days are the days it opens.

idNameHoursDaysNote
prePre-Open9:00 AM–9:15 AMMon–FriOrders taken until 9:08, then matched to set the opening price.
mainMain-Market9:15 AM–3:30 PMMon–FriNormal market on NSE and BSE.
postPost-Market3:40 PM–4:00 PMMon–FriTrades only at the closing price.

Response

FieldTypeMeaning
exchangestringThe exchanges covered.
timeZonestringThe exchange’s IANA time zone. Every time in the reply is in it, with its offset.
timestringThe moment answered for.
isOpenbooleanThe regular session (main) is open. Extended sessions don’t count: see session.
sessionobject|nullThe session open now, any kind: id, name, start, end and secondsLeft. Null when closed.
nextSessionobject|nullThe next session to open, any kind: id, name, start, end and secondsUntil.
nextOpenstring|nullWhen the regular session next opens (after time).
nextClosestring|nullWhen the regular session closes: today’s if it is open, else the next one’s.
todayobjectThe exchange’s date: date, weekday, tradingDay (the regular session opens that day: false at weekends and on holidays), holiday (its name), earlyClose (why), and its sessions as they run that day.
upcomingarrayHolidays (closed true) and early closes (with the regular session’s close) from today for a year: date, name.
holidaysKnownbooleanThe holiday calendar was available. When false, only weekends are taken into account.
holidaysKnownUntilstring|nullThe last date the holiday calendar covers.

Example

Right now, as this page loaded:

curl 'https://supertoolshq.com/api/v1/india/market-hours/'
{
    "exchange": "NSE / BSE",
    "timeZone": "Asia/Kolkata",
    "time": "2026-11-24T18:26:03+05:30",
    "isOpen": false,
    "session": null,
    "nextSession": {
        "id": "pre",
        "name": "Pre-Open",
        "start": "2026-11-25T09:00:00+05:30",
        "end": "2026-11-25T09:15:00+05:30",
        "secondsUntil": 52437
    },
    "nextOpen": "2026-11-25T09:15:00+05:30",
    "nextClose": "2026-11-25T15:30:00+05:30",
    "today": {
        "date": "2026-11-24",
        "weekday": "Tue",
        "tradingDay": false,
        "holiday": "Prakash Gurpurb Sri Guru Nanak Dev",
        "earlyClose": null,
        "sessions": []
    },
    "upcoming": [
        {
            "date": "2026-11-24",
            "name": "Prakash Gurpurb Sri Guru Nanak Dev",
            "closed": true
        },
        {
            "date": "2026-12-25",
            "name": "Christmas",
            "closed": true
        }
    ],
    "holidaysKnown": true,
    "holidaysKnownUntil": "2026-12-31"
}

Another moment

With at the reply is for that moment instead of now. Here 2026-11-24, a holiday (Prakash Gurpurb Sri Guru Nanak Dev): nothing opens that day:

curl 'https://supertoolshq.com/api/v1/india/market-hours/?at=2026-11-24T11:00:00'
{
    "exchange": "NSE / BSE",
    "timeZone": "Asia/Kolkata",
    "time": "2026-11-24T11:00:00+05:30",
    "isOpen": false,
    "session": null,
    "nextSession": {
        "id": "pre",
        "name": "Pre-Open",
        "start": "2026-11-25T09:00:00+05:30",
        "end": "2026-11-25T09:15:00+05:30",
        "secondsUntil": 79200
    },
    "nextOpen": "2026-11-25T09:15:00+05:30",
    "nextClose": "2026-11-25T15:30:00+05:30",
    "today": {
        "date": "2026-11-24",
        "weekday": "Tue",
        "tradingDay": false,
        "holiday": "Prakash Gurpurb Sri Guru Nanak Dev",
        "earlyClose": null,
        "sessions": []
    },
    "upcoming": [
        {
            "date": "2026-11-24",
            "name": "Prakash Gurpurb Sri Guru Nanak Dev",
            "closed": true
        },
        {
            "date": "2026-12-25",
            "name": "Christmas",
            "closed": true
        }
    ],
    "holidaysKnown": true,
    "holidaysKnownUntil": "2026-12-31"
}

Errors

A bad at gets HTTP 400:

{
    "errors": {
        "at": "A time like 2026-11-16T15:30:00Z or 2026-11-16T10:30:00-05:00 (or without an offset, in India time), or Unix seconds, between 2000 and 2099."
    }
}

From code

// JavaScript
const data = await (await fetch('https://supertoolshq.com/api/v1/india/market-hours/')).json();
console.log(data.isOpen ? 'Open until ' + data.nextClose : 'Opens ' + data.nextOpen);
# Python
import json, urllib.request
data = json.load(urllib.request.urlopen('https://supertoolshq.com/api/v1/india/market-hours/'))
print(data['isOpen'], data['session'] and data['session']['name'])

The conventions every API here follows (methods, errors, versions) are in the API overview.