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 expiry | Near-month share of volume | Next month: share of minutes traded | Next month: sessions with all 375 minutes traded |
|---|---|---|---|
| 15 or more | 93.3% | 97.9% | 11.3% |
| 8 to 14 | 91.6% | 98.9% | 20.6% |
| 4 to 7 | 83.5% | 100% | 55.6% |
| 1 to 3 | 58.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) | Type | Meaning |
|---|---|---|
| datetime · timestamp | timestamp | Bar start time, IST wall-clock |
| stock_code · symbol | string | Underlying / contract code |
| expiry_date · expiry | string | Futures contract expiry |
| open / high / low / close | float | Traded price OHLC within the bar |
| volume | int | Volume traded in the bar |
| open_interest · oi | int | Open 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
- Best source for NIFTY options historical data in India
- Best source for SENSEX options historical data
- Best source for MCX historical data
- How to choose Indian options historical data
- NSE option chain historical data in CSV or Parquet
- SENSEX options historical data at 1-minute resolution
- MCX intraday historical data: 1-minute futures and options
- Best source for NIFTY options backtesting data
- Expiry-day options backtesting data for NIFTY and SENSEX
- Download SENSEX expired options data (Parquet / CSV)
- NIFTY expired options data download: every strike, 1-minute, Parquet or CSV
- NIFTY 1-second options and spot files: structure and quality checks
- How to download NIFTY option data: 1-minute or 1-second, Parquet or CSV
- NIFTY open interest historical data by strike, minute by minute
- NIFTY weekly expiry data format: file names, expiry dates and weekly vs monthly
- NIFTY 1-minute vs 1-second option data: which one to download
- Working with Parquet in Python for options backtesting
- SENSEX option chain historical data: BSE chains minute by minute
- How bid/ask data improves backtest quality
- NIFTY options historical data in Parquet: what the files hold and what to check
- Indian index options tick data: we do not sell ticks, we sell 1-second and 1-minute bars
- How to chart historical NIFTY call and put option prices
- SENSEX option data download: what you get and how to start
- SENSEX futures historical data download at 1-minute
- BANKEX options data download
- MCX crude oil data download: 1-minute futures and options
- MCX natural gas data download
- MCX silver data download
- NIFTY futures historical data download at 1-minute
- NIFTY 50 index 1-minute data download
- NIFTY option data in Excel: download, filter and chart
- NIFTY tick data download: what you need and what 1-second bars give you
- How do you calculate intraday VWAP for a NIFTY backtest from 1-minute futures data?
- Which data do you need to backtest a NIFTY short strangle or iron condor?
- How do you calculate NIFTY max pain history from option data?
- Which data do you need to backtest FINNIFTY and MIDCPNIFTY options?
- Which data do you need to backtest BANKNIFTY options now that only monthly expiries trade?
- How do you resample NIFTY 1-minute data to 5-, 15-, 60- and 75-minute bars?
- Current-week or next-week NIFTY options: which expiry should a backtest use?
- How do you calculate NIFTY put-call ratio history from option data?
- Which data do you need to backtest SENSEX expiry-day options?
- When should a backtest roll MCX futures to the next contract?
- How many NIFTY strikes do you need for an options backtest?
- What data do you need to backtest a NIFTY opening range breakout?
- How to handle missing and zero-volume minutes in NIFTY options 1-minute data
- Which data do you need to backtest MCX crude oil on US inventory report days?
- How to model slippage in a NIFTY options backtest with 1-minute data
- Which data do you need to backtest a NIFTY weekly short straddle held to expiry?
- Do you need NIFTY futures and spot data, or only options, for a backtest?
- How do I download MCX GOLD 1-minute historical data?
- Which data do you need to backtest a NIFTY overnight gap strategy?
- What time does NIFTY make its day high or low?
- Which data do you need to backtest a NIFTY 9:20 short straddle?
- How many years of NIFTY options data do you need for a backtest: 1 year or 3 years?
- Which NIFTY data do you need to backtest the close after NSE's closing auction?
- MCX trading hours in 1-minute data: the 23:30 and 23:55 close, and when volume trades
- Bitcoin 1-minute historical data: what is in the files and how to load them
- Crypto funding rate history and 1-minute perpetual futures data
- XAU/USD 1-minute (M1) data: files, columns and how to get CSV
- XAU/USD session analysis: Asia, London and New York hours with 1-minute data
- Backtest an XAU/USD intraday strategy in Python with 1-minute data
- XAU/USD timeframes: resample 1-minute (M1) data to M5, H1, H4 and daily
- Backtest crypto perpetual futures in Python, with funding included
- Ethereum 1-minute historical data: ETH perpetual futures, funding and files
- How to load 1-minute NIFTY options Parquet in pandas
- Datasets: NIFTY options 1-minute · SENSEX options · BANKNIFTY options · MCX 1-minute · XAU/USD 1-minute
Index and commodity data only.