Policy
MARKET_CLOSE = time(15, 30) is wrong now. Here is the fix for Indian markets.
DEV · By AION Analytics ·
The 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.
Who’s affected
- Developers maintaining Indian trading or market-data code that hardcodes MARKET_CLOSE = time(15, 30)
What to do
- Review hardcoded market close times in Indian trading code and update them to match the SEBI change effective 3 August 2026
Here is a line that exists in a lot of Indian trading code: MARKET_CLOSE = time ( 15 , 30 ) Since 3 August 2026 it is wrong, and wrong in two different directions depending on what you trade. SEBI's circular of 16 January 2026 (HO/47/11/11(3)2025-MRD-POD2/I/2765/2026) introduced…