Indian Options Archive

Guides /

NIFTY options historical data archive: how a multi-year archive is organised

A NIFTY options historical data archive from 2020: how the files are laid out by day and expiry, how to index years of data quickly, and how to choose a window.

A multi-year NIFTY options archive is thousands of files. The useful question is not "how big is it?" but "can I find any contract on any day in a second?". This guide shows how our NIFTY archive is organised and how to put an index on top of it.

Layout

One folder per year, one Parquet file per trading day per listed expiry:

NIFTY/
  2020/NIFTY_OPT_1min_2020-01-02_exp2020-01-02.parquet
  ...
  2026/NIFTY_OPT_1min_2026-10-27_exp2026-10-28.parquet
  2026/NIFTY_FUT_1min_2026-10-27_exp2026-11-25.parquet   (Complete packs)
  2026/NIFTY_SPOT_1min_2026-10-27.parquet                (Complete packs)

Each option row is one contract in one minute: strike, call or put, expiry, open, high, low, close, volume and open interest.

Build a catalogue once

import re
from pathlib import Path
import pandas as pd

pat = re.compile(r"NIFTY_OPT_1min_(\d{4}-\d{2}-\d{2})_exp(\d{4}-\d{2}-\d{2})")
cat = pd.DataFrame([(m[1], m[2], str(f)) for f in Path("NIFTY").rglob("*.parquet")
                    if (m := pat.search(f.name))], columns=["day", "expiry", "path"])
cat.to_parquet("catalogue.parquet")

# later: every file for one expiry, or one day, without walking the disk
print(cat[cat.expiry == "2024-06-27"].path.tolist()[:3])

Choosing how much history

Older files use slightly different column names. The FAQ shows how to map them.

Questions

How far back does the NIFTY options archive go?

To January 2020 at 1-minute, in the since-2020 pack. Single-year and 3-year packs cover shorter windows.

Are expired contracts included?

Yes. The archive stores every trading day with the expiries listed that day, so expired contracts are all there.

How is the archive delivered?

As a download link to Parquet files, organised by year. CSV on request.

Data for this guide

Or start with the free samples.

More guides