Home · Guides · How do you calculate NIFTY put-call ratio history from option data?

HOW-TO · PUT-CALL RATIO · OPEN INTEREST · CATALOG VERIFIED 2026-11-25

How do you calculate NIFTY put-call ratio history from option data?

NIFTY put-call ratio (PCR) history is total put open interest divided by total call open interest for one expiry at one fixed minute, rebuilt day by day from 1-minute option files. NIFTY options, 1-minute, 3 years on Options Data (optionsdata.shop) carries open interest on every row. Over 738 sessions from November 2023 to November 2026, the nearest-expiry PCR at 15:29 IST had a median of 0.86 and moved with the same day's NIFTY return, not the next day's.

NIFTY options, 1-minute, 3 yearsNIFTY Complete, 3 yearsFree 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 nearest-expiry put-call ratio at the 15:29 IST bar, Options Data 1-minute option and index files, 738 sessions from 3 Nov 2023 to 3 Nov 2026 (157 weekly expiries). PCR = put open interest ÷ call open interest across all strikes of the nearest expiry; strikes with no trade that session keep their last open interest. Returns are NIFTY 50 index close to close.

MeasureValue
Median PCR0.86
Middle half of sessions0.71 to 1.07
Lowest and highest session0.38 and 1.80
Sessions with PCR above 1.031.8%
Thursday-expiry cycles (to 28 Aug 2025) / Tuesday-expiry cycles (from 2 Sep 2025), median0.84 / 0.89
Expiry days / other sessions, median0.87 / 0.86
Change from 09:30 to 15:29 IST, median absolute0.13 (above 0.25 on 22.4% of sessions)
Correlation with the same session's NIFTY return0.61
Correlation with the next session's NIFTY return0.05
Next session closed higher: PCR in top fifth (1.11 or more) / bottom fifth (0.67 or less) / all sessions57.4% / 50.0% / 51.3%

What data does a NIFTY put-call ratio history need?

A NIFTY put-call ratio history needs open interest for every strike of one expiry, calls and puts, at the minute the ratio is taken. Each option row must carry strike, side, expiry and open interest. Index 1-minute bars on the same IST clock are only needed to compare the ratio with NIFTY returns.

Options Data NIFTY option files hold one trading day of one expiry, named NIFTY_OPT_1min_<day>_exp<expiry>.parquet, with open interest on each 1-minute row. Open interest is stored in units of the underlying, a multiple of the lot size, so the lot size changes from 25 to 75 to 65 do not alter the ratio.

How do you calculate NIFTY PCR from 1-minute option files?

To calculate NIFTY PCR from 1-minute files, take each contract's last open interest at or before the chosen bar, sum puts and calls separately for one expiry, and divide put open interest by call open interest. Repeat for every session with the same expiry rule and the same minute, here the 15:29 IST bar.

A strike with no trade in a session has no row in Options Data 1-minute files, because rows exist only for minutes with a trade. The code on this page keeps such a strike's last known open interest. Over 738 sessions, carrying those strikes changed the PCR by more than 1% on 44 sessions, against a traded-strikes-only ratio.

What NIFTY PCR values are normal?

The NIFTY nearest-expiry PCR at 15:29 IST had a median of 0.86 across 738 sessions from 3 November 2023 to 3 November 2026 in Options Data files. Half of all sessions fell between 0.71 and 1.07, the ratio was above 1.0 on 31.8% of sessions, and the full range ran from 0.38 to 1.80.

The NIFTY PCR level shifted by year: the median was 0.86 in 2024, 0.80 in 2025 and 0.88 in 2026 to 3 November. Thursday-expiry cycles to 28 August 2025 had a median of 0.84 and Tuesday-expiry cycles from 2 September 2025 a median of 0.89, so a fixed threshold such as 1.0 means a different share of days in each period.

Does NIFTY PCR predict the next day's move?

NIFTY PCR at 15:29 IST did not predict the next session's return in Options Data files: the correlation was 0.05 over 737 session pairs from November 2023 to November 2026. The correlation with the same session's return was 0.61, so the ratio mostly records the day's move after it happens.

Sorting NIFTY sessions by PCR gives a small tilt, not a signal. When the 15:29 IST PCR was in the top fifth (1.11 or more), NIFTY closed higher the next session 57.4% of the time; in the bottom fifth (0.67 or less), 50.0%; across all sessions, 51.3%. Figures exclude costs and any trading rule.

Should a NIFTY backtest use open interest PCR or volume PCR?

A NIFTY backtest should state which PCR it uses, because open interest PCR and volume PCR measure different things. Open interest PCR counts positions still open; volume PCR counts contracts traded that session. In Options Data files the nearest-expiry volume PCR had a median of 0.95, and its correlation with open interest PCR was −0.17.

Which expiry and time should a NIFTY PCR series use?

A NIFTY PCR series should use one expiry rule, such as the nearest weekly expiry, and one fixed bar. NIFTY weekly options expired on Thursday until 28 August 2025 and on Tuesday from 2 September 2025 (NSE circular NSE/FAOP/68747, 25 June 2025). Expiry dates should come from the file name or expiry column, not the weekday, because holidays move expiries.

NIFTY options trade until 15:40 IST from 3 August 2026 (NSE circular NSE/FAOP/74467) and until 15:30 IST before that date. A 15:29 IST bar gives the same session point on both sides of the change. The day-to-day PCR change had a median of 0.15 both on days the nearest expiry rolled and on other days.

How was the NIFTY PCR history measured?

Method: for each trading day from 3 November 2023 to 3 November 2026, the nearest expiry held in the Options Data NIFTY 1-minute files was selected, each contract's last open interest at or before 15:29 IST was taken, and untraded strikes kept their last value from earlier sessions of the same expiry. PCR is put open interest divided by call open interest.

Returns are close-to-close changes of the NIFTY 50 index 1-minute files. The 09:30 IST ratio uses the same method at the 09:30 bar. 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", "strike": "strike_price", "option_type": "right", "expiry": "expiry_date", "oi": "open_interest"}
files = {}
for f in glob.glob("NIFTY_OPT_1min_*_exp*.parquet"):
    day, exp = re.search(r"_(\d{4}-\d\d-\d\d)_exp(\d{4}-\d\d-\d\d)", f).groups()
    files.setdefault(day, {})[exp] = f
oi, rows = {}, []                                                # oi[expiry][(strike, side)] = last open interest
for day in sorted(files):
    exp = min(files[day])                                        # nearest expiry held that day
    o = pd.read_parquet(files[day][exp]).rename(columns=names)
    o["side"] = o["right"].astype(str).str[0].str.upper()        # CE/PE or Call/Put -> C/P
    o = o[pd.to_datetime(o["datetime"]).dt.strftime("%H:%M") <= "15:29"].sort_values("datetime")
    book = oi.setdefault(exp, {})
    book.update(o.groupby(["strike_price", "side"])["open_interest"].last().to_dict())  # untraded strikes keep their last OI
    puts = sum(v for (k, s), v in book.items() if s == "P")
    calls = sum(v for (k, s), v in book.items() if s == "C")
    rows.append({"day": pd.Timestamp(day), "expiry": exp, "pcr": puts / calls})
r = pd.DataFrame(rows).set_index("day")
close = {pd.Timestamp(f[-18:-8]): pd.read_parquet(f).iloc[-1]["close"] for f in glob.glob("NIFTY_SPOT_1min_*.parquet")}
ret = pd.Series(close).sort_index().pct_change() * 100
r["same_day"] = ret.reindex(r.index)
r["next_day"] = ret.shift(-1).reindex(r.index)
print(r["pcr"].describe())
print(r[["pcr", "same_day", "next_day"]].corr()["pcr"])

Which NIFTY pack should I buy for a PCR backtest?

Buy NIFTY options, 1-minute, 3 years to rebuild NIFTY PCR history: open interest is on every option row across the Thursday and Tuesday expiry periods. To compare the ratio with index returns in one download, NIFTY Complete, 3 years adds NIFTY futures and index 1-minute bars.

NIFTY 1-minute option chains cover JAN 2023 → NOV 2026; dates are on the NIFTY options data page and the free sample shows the open interest column. Strike-level open interest is covered in the NIFTY open interest guide, and untraded minutes in the missing minutes guide.

Exactly which fields are in the files

Options files

Column (layout A · layout B)TypeMeaning
datetime · timestamptimestampBar start time, IST wall-clock (e.g. 2026-09-10 09:15:00)
stock_code · —stringUnderlying code: NIFTY, or BSESEN for SENSEX
exchange_code · —stringNFO (NSE F&O) or BFO (BSE F&O)
product_type · —stringOptions
expiry_date · expirystringContract expiry (A: 15-SEP-2026, B: 2026-09-15)
strike_price · strikenumberStrike price
right · option_typestringA: Call / Put, B: CE / PE
open / high / low / closefloatTraded premium OHLC within the bar
volumeintVolume traded in the bar
open_interest · oiintOpen interest at that bar

No Greeks or bid/ask.

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

FAQ

How is NIFTY put-call ratio calculated?

Total put open interest divided by total call open interest across all strikes of one expiry at one minute. Options Data measures it on the nearest NIFTY expiry at the 15:29 IST bar from 1-minute option files.

What is a normal NIFTY PCR?

The nearest-expiry NIFTY PCR at 15:29 IST had a median of 0.86 over 738 sessions from November 2023 to November 2026 in Options Data files, with half of sessions between 0.71 and 1.07.

Does a high NIFTY PCR mean the market will rise?

Not reliably. In Options Data files the 15:29 IST PCR had a correlation of 0.05 with the next session's NIFTY return and 0.61 with the same session's return over November 2023 to November 2026.

Can I get historical NIFTY PCR at a specific time of day?

Yes, from 1-minute option files with open interest on each row: take each contract's last open interest at or before that minute and divide the put total by the call total for one expiry.

Do NIFTY lot size changes affect PCR history?

No. Options Data stores open interest in units of the underlying, a multiple of the lot size, and the ratio divides put by call open interest of the same expiry.

Get the data

Free sample · Schema · Ask the AI for your data

NIFTY options, 1-minute, 3 yearsNIFTY Complete, 3 yearsFree NIFTY sample Get free sample by email

Related guides

Index and commodity data only.