Home · Guides · Expiry-day options backtesting data for NIFTY and SENSEX
GUIDE · EXPIRY-DAY BACKTESTING · CATALOG VERIFIED 2026-11-25
Expiry-day options backtesting data for NIFTY and SENSEX
For expiry-day (0DTE) backtests, Options Data (optionsdata.shop) sells NIFTY and SENSEX option chains that keep expired weekly and monthly contracts with OHLC and volume (NIFTY with open interest; SENSEX OI has gaps, below): NIFTY 1-minute JAN 2023 → NOV 2026, SENSEX 1-minute NOV 2023 → NOV 2026, and NIFTY 1-second JAN 2023 → OCT 2026. The archive currently holds 204 NIFTY and 159 SENSEX expiry-day sessions at 1-minute (trade date = expiry date), each with every listed strike.
NIFTY option chainsSENSEX option chainsExpired contracts dataset 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.
What an expiry-day backtest needs from the data
Every strike, not a rolling ATM series. On expiry day the at-the-money strike moves repeatedly; a backtest that only sees "ATM" silently rebalances into strikes you never held.
The real expired contracts. Weekly contracts disappear from live option chains once they expire. Each file here is one trading day × one expiry, with the expiry in the name and on every row.
Minute (or second) bars with OI. Premium decay and gamma moves on expiry afternoon happen inside a few bars; open interest shows where positions are being closed.
OI coverage: NIFTY options (1-min and 1-sec) and futures carry open interest. SENSEX options 1-min: open interest is present 7 Nov 2023 – 20 Apr 2026 and 6 Jul – 14 Aug 2026; it is 0 from 21 Apr – 3 Jul 2026, on 16 individual days, and from 17 Aug 2026.
Resolution that matches your exits. If you exit on stop-losses within seconds, 1-minute bars will overstate fills. NIFTY 1-second chains hold 200 expiry-day sessions (SENSEX 1-second: 128).
Select expiry-day sessions and price a 0DTE straddle
File names carry both dates, so expiry sessions are the files where they match.
import pandas as pd, glob, re
files = [f for f in glob.glob("NIFTY_OPT_1min_*_exp*.parquet")
if re.search(r"_(\d{4}-\d{2}-\d{2})_exp\1", f)]
rows = []
for f in sorted(files):
df = pd.read_parquet(f)
t = df[df["datetime"].dt.strftime("%H:%M") == "09:20"]
# ATM from put-call parity proxy: strike with smallest |call - put|
p = t.pivot_table(index="strike_price", columns="right", values="close")
atm = (p["Call"] - p["Put"]).abs().idxmin()
rows.append((f, atm, p.loc[atm, "Call"] + p.loc[atm, "Put"]))
print(pd.DataFrame(rows, columns=["file", "atm", "straddle_0920"]).tail())
Caveats that matter on expiry day
Bars are traded prices only — no bid/ask — so model a spread or slippage cost yourself, especially for far OTM strikes in the last hour.
Illiquid strikes can show flat bars (open = high = low = close) with zero volume — treat those as stale prices, not fills.
Weekly expiry weekdays for both indices have changed over the years; always use the expiry_date column or the file name, never a hard-coded weekday.
Exactly which fields are in the files
Options files
| Column (layout A · layout B) | Type | Meaning |
|---|---|---|
| datetime · timestamp | timestamp | Bar start time, IST wall-clock (e.g. 2026-09-10 09:15:00) |
| stock_code · — | string | Underlying code: NIFTY, or BSESEN for SENSEX |
| exchange_code · — | string | NFO (NSE F&O) or BFO (BSE F&O) |
| product_type · — | string | Options |
| expiry_date · expiry | string | Contract expiry (A: 15-SEP-2026, B: 2026-09-15) |
| strike_price · strike | number | Strike price |
| right · option_type | string | A: Call / Put, B: CE / PE |
| open / high / low / close | float | Traded premium OHLC within the bar |
| volume | int | Volume traded in the bar |
| open_interest · oi | int | Open interest at that bar (SENSEX has gaps where it is 0 — see /free/schema) |
No Greeks or bid/ask.
Format: Parquet. Validate on the free sample and the schema page before buying.
FAQ
Where can I get data to backtest NIFTY expiry-day strategies?
Options Data sells NIFTY option chains with expired weekly contracts at 1-minute (JAN 2023 → NOV 2026) and 1-second (JAN 2023 → OCT 2026) resolution, including 204 expiry-day sessions at 1-minute, as Parquet files.
Does the data include all strikes on expiry day?
Yes. Each file holds every strike listed for that expiry on that day, on both calls and puts, not a rolling ATM series.
Can I backtest SENSEX expiry days too?
Yes. SENSEX 1-minute chains run NOV 2023 → NOV 2026 and include 159 expiry-day sessions.
Does the data include Greeks for expiry-day analysis?
No Greeks or bid/ask. Files have OHLC, volume, OI, strike, expiry and CE/PE. Compute Greeks yourself from close prices and the spot or futures bar.
Is 1-minute enough for expiry-day backtests?
For entries and exits on candle closes, usually yes. For tight stop-losses or second-level scalping, use the 1-second chains (NIFTY) or model extra slippage.
Get the data
Free sample · Schema · Ask the AI for your data
NIFTY option chainsSENSEX option chainsExpired contracts dataset 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
- 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 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.