Home · Guides · Which NIFTY futures data does a backtest need: a continuous series or every contract month?

BUYER GUIDE · NIFTY FUTURES · ROLLOVER · CATALOG VERIFIED 2026-12-02

Which NIFTY futures data does a backtest need: a continuous series or every contract month?

A NIFTY futures backtest needs every contract month as a separate series, with the expiry on each row, so the roll rule and the roll gap are chosen and measured, not inherited from a spliced continuous series. NIFTY Complete, 3 years on Options Data (optionsdata.shop) holds NIFTY futures 1-minute files per contract per day for the latest 3 years, with options and index bars on the same IST clock. Over 37 monthly expiries from 30 November 2023 to 23 November 2026, the gap between the next and near month at the expiry-day 15:29 IST bar was a median 149.05 index points, 0.63% of the near-month price.

NIFTY Complete, 3 yearsNIFTY Complete, 1 yearFree NIFTY sample Get free sample by email File schema

Get the free sample by email → check the columns

Dates on this page are read from the live file catalog, not typed by hand. Full matrix: /coverage.

NIFTY futures near month vs next month, Options Data 1-minute files, 737 sessions from 28 Nov 2023 to 23 Nov 2026 (37 monthly expiries; Muhurat and other short special sessions left out). Near-month share = near-month day volume ÷ (near + next). Traded minute = a 09:15 to 15:29 IST bar with volume above 0. Medians unless stated.

Sessions before expiryNear-month share of volumeNext month: share of minutes tradedNext month: sessions with all 375 minutes traded
15 or more93.3%97.9%11.3%
8 to 1491.6%98.9%20.6%
4 to 783.5%100%55.6%
1 to 358.8%100%98.2%
0 (expiry day)43.1%100%100%

Does a NIFTY futures backtest need a continuous series or individual contracts?

A NIFTY futures backtest needs individual contracts. A continuous NIFTY futures series is built from them by a roll rule, and a spliced series without adjustment books each roll gap as a price move: over 37 rolls from November 2023 to November 2026 in Options Data files, those gaps added up to 5,366.95 index points.

Options Data NIFTY futures files hold one contract for one trading day, named NIFTY_FUT_1min_<day>_exp<expiry>.parquet, with OHLC, volume, open interest and the contract expiry on every 1-minute row. Zero-volume rows are kept, so filter on volume > 0 to count traded minutes.

Which NIFTY futures contracts trade at the same time?

NIFTY futures trade on a three-month cycle: the near month, the next month and the far month, each cash-settled at the NIFTY 50 closing price on its expiry day. NIFTY monthly futures expired on the last Thursday of the month until 28 August 2025 and on the last Tuesday from 30 September 2025 (NSE circular NSE/FAOP/68747, 25 June 2025).

Holidays move a NIFTY futures expiry to the previous trading day, as on Monday 30 March 2026 and Monday 23 November 2026. In Options Data files the September 2025 contract carries expiry 2025-09-25 on sessions up to 31 July 2025 and 2025-09-30 from 1 August 2025, so a backtest should key contracts on the expiry month, not the expiry date.

When does NIFTY futures volume move to the next month?

NIFTY futures day volume moved to the next month on expiry day itself for 33 of 37 monthly expiries from 30 November 2023 to 23 November 2026, and one session before expiry for the other 4. The near month held a median 58.8% of near plus next volume one to three sessions before expiry and 43.1% on expiry day.

End-of-day open interest moved earlier than volume: next-month open interest first exceeded near-month open interest one session before expiry for 22 expiries, on expiry day for 13, and two sessions before for 2. The split was the same in the Thursday and Tuesday expiry periods: near-month share on expiry day was a median 43.8% over 22 Thursday expiries and 42.9% over 15 Tuesday expiries.

How large is the NIFTY futures roll gap at expiry?

The NIFTY futures roll gap, next month minus near month at the expiry-day 15:29 IST bar, was a median 149.05 index points, or 0.63% of the near-month price, over 37 expiries from November 2023 to November 2026. The middle half ran from 0.45% to 0.76%, and the full range from 0.20% to 1.00%; the next month was above the near month at every expiry.

A back-adjusted continuous NIFTY series subtracts each gap from all earlier prices, so its old levels no longer match traded prices. A ratio-adjusted series scales earlier prices instead. Both need the two contracts on the roll day, which a single pre-built continuous file does not carry.

Does the NIFTY futures roll day change a backtest result?

Yes. A long position in the front-month NIFTY future from 28 November 2023 to 23 November 2026, rolled at the 15:29 IST bar on expiry day, gained 185.05 index points; the same position rolled at the 15:29 IST bar one session before expiry gained 929.80 points, and three sessions before gained 838.55 points. Figures are per unit of the index, over 37 rolls, before costs and slippage.

The difference comes from the gap between the two contracts on the last session: at the 15:29 IST bar the gap was wider on expiry day than one session earlier for 23 of 37 expiries, with a median widening of 18.50 points across all 37.

Is next-month NIFTY futures 1-minute data liquid enough to backtest?

Next-month NIFTY futures traded in a median 97.9% of 09:15 to 15:29 IST minutes when 15 or more sessions remained to the near-month expiry, and in every minute on 11.3% of those sessions. From one to three sessions before expiry the next month traded in all 375 minutes on 98.2% of sessions.

NIFTY futures trade until 15:40 IST from 3 August 2026 (NSE circular NSE/FAOP/74467), and Options Data futures files from that date include bars from 15:30 to 15:39 IST where trades occurred. The figures on this page use the 15:29 IST close so both periods share one clock.

How were the NIFTY futures roll figures measured?

Method: for each session from 28 November 2023 to 23 November 2026, the two Options Data NIFTY futures files with the nearest expiry months were read; day volume was summed over all bars and the close was taken from the last bar at or before 15:29 IST. Sessions with fewer than 300 bars, such as Muhurat sessions, were left out. Roll results switch from the near to the next contract at the 15:29 IST close of the stated session.

Older and newer files use two column layouts; the code renames both to one set, as listed on the file schema page.

import glob, re, pandas as pd
names = {"timestamp": "datetime", "expiry": "expiry_date", "oi": "open_interest"}
rows = []
for f in sorted(glob.glob("NIFTY_FUT_1min_*_exp*.parquet")):
    day, exp = re.search(r"_(\d{4}-\d\d-\d\d)_exp(\d{4}-\d\d-\d\d)", f).groups()
    d = pd.read_parquet(f).rename(columns=names)
    d["hm"] = pd.to_datetime(d["datetime"]).dt.strftime("%H:%M")   # IST, bar start
    if len(d) < 300: continue                          # skip short special sessions
    c = d[d["hm"] <= "15:29"].sort_values("hm")      # one close clock before and after 3 Aug 2026
    rows.append({"day": day, "month": exp[:7],        # key on expiry month, not expiry date
                 "volume": d["volume"].sum(), "close": c["close"].iloc[-1]})
r = pd.DataFrame(rows).sort_values(["day", "month"])
r["leg"] = r.groupby("day").cumcount().map({0: "near", 1: "next", 2: "far"})
w = r[r["leg"] != "far"].pivot(index="day", columns="leg")
w["k"] = w.groupby(("month", "near")).cumcount(ascending=False)   # sessions to expiry, 0 = expiry day
w["near_share"] = w[("volume", "near")] / w["volume"].sum(axis=1)
w["gap"] = w[("close", "next")] - w[("close", "near")]           # calendar spread, index points
print(w.groupby(pd.cut(w["k"], [-1, 0, 3, 7, 14, 40]))["near_share"].median())
cross = w[w[("volume", "next")] > w[("volume", "near")]].groupby(("month", "near"))["k"].max()
print(cross.value_counts())                                       # sessions before expiry at first crossover
print(w.loc[w["k"] == 0, "gap"].describe())

Which Options Data pack has NIFTY futures contracts for a roll backtest?

Buy NIFTY Complete, 3 years for a NIFTY futures roll backtest across both the Thursday and Tuesday expiry periods: it holds NIFTY futures 1-minute files per contract per day, with the near and next months on every session, plus NIFTY options and index 1-minute bars. NIFTY Complete, 1 year covers the last 12 months, all in the Tuesday period. Options-only packs do not include futures.

NIFTY 1-minute futures cover JAN 2015 → DEC 2026; dates are on the NIFTY futures 1-minute data page. Building a back-adjusted series is shown in the NIFTY futures download guide, and roll timing for commodity futures in the MCX futures rollover guide.

Exactly which fields are in the files

Futures files

Column (layout A · layout B)TypeMeaning
datetime · timestamptimestampBar start time, IST wall-clock
stock_code · symbolstringUnderlying / contract code
expiry_date · expirystringFutures contract expiry
open / high / low / closefloatTraded price OHLC within the bar
volumeintVolume traded in the bar
open_interest · oiintOpen interest at that bar

No continuous or back-adjusted column and no Greeks or bid/ask. Futures rows carry OHLC, volume and open interest per contract, with the contract expiry on every row.

Format: Parquet. Validate on the free sample and the schema page before buying.

FAQ

Is NIFTY futures historical data a continuous series?

Not in Options Data files. Each NIFTY futures contract has its own 1-minute file per trading day with the expiry on every row, so a continuous series is built with your own roll rule.

When should a NIFTY futures backtest roll to the next month?

Next-month volume overtook the near month on expiry day for 33 of 37 expiries from November 2023 to November 2026, and one session before for 4. Next-month open interest led by one session for 22 of 37.

How big is the NIFTY futures rollover gap?

A median 149.05 index points, 0.63% of the near-month price, at the expiry-day 15:29 IST bar over 37 expiries from November 2023 to November 2026, with a range of 0.20% to 1.00%.

What day do NIFTY monthly futures expire?

The last Tuesday of the month from 30 September 2025, and the last Thursday until 28 August 2025, per NSE circular NSE/FAOP/68747 of 25 June 2025. A holiday moves expiry to the previous trading day.

Do NIFTY futures 1-minute files include bars after 15:30 IST?

Yes, from 3 August 2026, when NIFTY futures began trading until 15:40 IST under NSE circular NSE/FAOP/74467. Options Data futures files from that date include 15:30 to 15:39 IST bars where trades occurred.

Get the data

Free sample · Schema · Ask the AI for your data

NIFTY Complete, 3 yearsNIFTY Complete, 1 yearFree NIFTY sample Get free sample by email

Related guides

Index and commodity data only.