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.
| Measure | Value |
|---|---|
| Median PCR | 0.86 |
| Middle half of sessions | 0.71 to 1.07 |
| Lowest and highest session | 0.38 and 1.80 |
| Sessions with PCR above 1.0 | 31.8% |
| Thursday-expiry cycles (to 28 Aug 2025) / Tuesday-expiry cycles (from 2 Sep 2025), median | 0.84 / 0.89 |
| Expiry days / other sessions, median | 0.87 / 0.86 |
| Change from 09:30 to 15:29 IST, median absolute | 0.13 (above 0.25 on 22.4% of sessions) |
| Correlation with the same session's NIFTY return | 0.61 |
| Correlation with the next session's NIFTY return | 0.05 |
| Next session closed higher: PCR in top fifth (1.11 or more) / bottom fifth (0.67 or less) / all sessions | 57.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) | 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 |
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
- 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 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?
- 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.