# MARKET_CLOSE = time(15, 30) is wrong now. Here is the fix for Indian markets.

Source: [DEV Community: python](https://dev.to/aion-analytics-in/marketclose-time15-30-is-wrong-now-here-is-the-fix-for-indian-markets-1068) · 2026-11-17 · Languages
Page: https://themorning.dev/story/market-close-time-15-30-is-wrong-now-here-is-the-fix-for-indian-markets-a5255b46dcff22d8
Kind: policy · Impact: medium

## In brief

- A SEBI circular dated 16 January 2026 (HO/47/11/11(3)2025-MRD-POD2/I/2765/2026) changed Indian market trading hours.
- Since 3 August 2026, the hardcoded MARKET_CLOSE = time(15, 30) in many Indian trading codebases is wrong.
- The article says the error runs in two directions depending on what is traded; the excerpt does not give the details.

## Why it matters

Trading code that hardcodes a 15:30 market close can misjudge when sessions end, which affects order handling and any logic that depends on the close time.

## What to do

- Review hardcoded market close times in Indian trading code and update them to match the SEBI change effective 3 August 2026

## Timeline

- 2026-01-16: SEBI circular HO/47/11/11(3)2025-MRD-POD2/I/2765/2026 introduced the change
- 2026-08-03: Change takes effect; MARKET_CLOSE = time(15, 30) becomes wrong

## Coverage

- [MARKET_CLOSE = time(15, 30) is wrong now. Here is the fix for Indian markets.](https://dev.to/aion-analytics-in/marketclose-time15-30-is-wrong-now-here-is-the-fix-for-indian-markets-1068) — DEV Community: python, 2026-11-17

Tags: india, sebi, trading, python, market-hours

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
