From Monday 7 December 2026, the last half hour of the Indian equity day runs on a new timetable. If your code hard-codes 15:15, 15:35 or 15:40, it will be wrong from that day.

The change comes from SEBI circular HO/47/11/11(3)2025-MRD-POD2/I/23843/2026 of 15 October 2026, "Review of certain aspects of the Closing Auction Session, market timings and settlement methodology for derivatives contracts" (PDF on sebi.gov.in). Paragraph 6.1 sets the date: the changes "shall come into effect from December 07, 2026".

What changes

Until Friday 4 December From Monday 7 December
Cash stocks that have derivatives: continuous trading ends 15:15 15:30
Closing Auction Session (CAS) for those stocks 15:15 to 15:35 15:30 to 15:40 (para 4.2.1)
Index and stock derivatives close 15:40 15:45 (paras 4.2.4, 4.2.5)
Expiring index derivatives on expiry day stop at 15:30 (para 4.2.4)
Cash post-close session 15:50 to 16:00 (para 4.2.6)

The new column is from the October circular. The "until 4 December" column is the schedule the package applies before the change, under the closing-auction framework that SEBI introduced by its circular of 16 January 2026; it is what our post of 17 November described. That post is correct for dates up to 4 December and out of date from 7 December.

Two details from the circular that a fixed timetable cannot capture: order entry in the auction "shall close randomly anytime between 3:38 p.m. to 3:40 p.m." (para 4.2.2), and on special trading days the auction and the derivatives close follow their own offsets (para 4.2.7).

Checking it in code

aion-indian-market-calendar is an MIT-licensed Python package we maintain. Release 1.8.1 carries both schedules with their effective dates, so the same question gets the right answer on either side of the change. No API key, no network needed.

pip install aion-indian-market-calendar 
from aion_indian_market_calendar import IndiaMarketCalendar, get_market_phase cal = IndiaMarketCalendar.bundled(2026) for day in ("2026-12-04", "2026-12-07"): # Friday before, Monday from for clock in ("15:20", "15:35", "15:42"): at = f"{day}T{clock}:00+05:30" print(day, clock, get_market_phase(at, "NSE_EQUITY_FNO_UNDERLYING", calendar=cal), get_market_phase(at, "NSE_EQUITY_DERIVATIVES", calendar=cal)) 

Output with release 1.8.1 (run with AION_IN_CALENDAR_OFFLINE=1):

2026-12-04 15:20 CLOSING_AUCTION CONTINUOUS 2026-12-04 15:35 CLOSED CONTINUOUS 2026-12-04 15:42 CLOSED CLOSED 2026-12-07 15:20 CONTINUOUS CONTINUOUS 2026-12-07 15:35 CLOSING_AUCTION CONTINUOUS 2026-12-07 15:42 CLOSED CONTINUOUS 

At 15:20 on 4 December, a stock with derivatives is already in the auction. At 15:20 on 7 December, it is still in continuous trading. At 15:42, derivatives are closed on the 4th and still trading on the 7th.

get_market_phase returns PRE_OPEN, CONTINUOUS, CLOSING_AUCTION, POST_CLOSE, MUHURAT_TRADING or CLOSED. If your code only asks "is the market open?", it cannot tell continuous matching from the auction. Ask for the phase instead.

What the package does not do

  • It describes the scheduled timetable. It cannot see the random close inside the auction window or a real-time halt.
  • The segment query does not know which contract you hold. On an expiry day, expiring index contracts stop at 15:30 while the segment runs to 15:45, so apply that rule to the contract yourself. get_expiry_day("NIFTY", "2026-12-07", calendar=cal) returns 8 December, the Tuesday weekly expiry.
  • Release 1.8.1 covers 1 January to 31 December 2026. A date in 2027 raises ValueError rather than guessing.
  • The circular, and the exchanges' own notices, are the authority. The package is a convenience for checking them in code.

This is information about market timings, not advice on what or when to trade.

Source and issues: github.com/AION-Analytics-India/aion-indian-market-calendar. If you find a date or session it gets wrong, please open an issue with the exchange notice.