newTejHQ MCP is live: backtest Indian market data with your own AI agent
TEJHQ
nse · futures & options · end of day · retail and pro

NSE F&O history,
every contract since 2010.

The daily equity derivatives bhavcopy from NSE, cleaned into one schema across both of NSE's file formats. Index and stock futures and options, settle prices and open interest, for every trading day from 2010-01-04. Updated each trading day.

since
2010-01-04
contracts / day
~34,000
instruments
FUT + OPT
access
Retail · Pro

Endpoints

  • GET /v1/fo/chain/{symbol}?date=&expiry=

    Option chain for one expiry on one day, with implied volatility, delta, gamma, theta and vega on every contract that traded. Defaults to the latest day and the nearest expiry. Meta carries the underlying price.

  • GET /v1/fo/expiries/{symbol}?date=

    Expiries traded on a day, per instrument, with contracts, open interest and strike count.

  • GET /v1/fo/futures/{symbol}?from=&to=

    Index or stock futures across every expiry, per day. Roll your own continuous series.

  • GET /v1/fo/contract/{symbol}?expiry=&strike=&option_type=

    One contract's daily history to expiry. Leave out strike and option_type for the future.

  • GET /v1/fo/stats/{symbol}?from=&to=&expiry=

    Daily figures per expiry, computed by TejHQ: put-call ratio by OI and by volume, max pain, futures buildup (long buildup, short covering and so on), basis, rollover %, ATM implied volatility and 25-delta skew, since 2010.

Full parameters in the API reference.

Code

python · pip install tejhq
from tej import Client

c = Client(api_key="tej_live_...")  # Retail or Pro

chain = c.fo_chain("NIFTY")                       # latest day, nearest expiry
past = c.fo_chain("BANKNIFTY", date="2020-03-23")  # any day since 2010
futs = c.fo_futures("RELIANCE", from_="2024-01-01", to="2024-12-31")
ce = c.fo_contract("NIFTY", expiry="2024-07-25", strike=24500, option_type="CE")
node · npm install tejhq
import { Client } from "tejhq";

const c = new Client({ apiKey: "tej_live_..." });
const chain = await c.foChain("NIFTY", { date: "2024-07-09" });
const exps = await c.foExpiries("NIFTY");
curl
curl -H "Authorization: Bearer tej_live_..." \
  "https://api.tejhq.dev/v1/fo/chain/NIFTY?date=2024-07-09"

What you get per contract

date, symbol, instrument
FUTIDX, FUTSTK, OPTIDX, OPTSTK
expiry, strike, option_type
CE / PE (CA / PA before 2011). Null for futures
open, high, low, close
As NSE publishes them. On a no-trade row (contracts = 0), open, high and low are 0 and close is not a trade from that day. Close is not always the last trade
settle_price
Exchange settlement price, used for MTM
contracts, turnover
Contracts traded and value in rupees
open_interest, oi_change
OI at close and change from the previous day
underlying, lot_size
From July 2024, when NSE added them to the file
iv, delta, gamma, theta, vega
Computed by TejHQ on every option that traded that day: Black-76 on the same-expiry future (put-call parity when there is none), RBI repo rate, theta per day, vega per vol point. Null on untraded rows

End of day only, no intraday ticks. Before July 2024 NSE's file has no underlying price or lot size; join the underlying from the cash market data instead.

What people build with it

Options backtests

Test straddles, strangles, spreads and iron condors on real settled prices across 16 years of expiries, not a model of what the premium might have been.

Open interest studies

Put-call ratio, max pain, OI buildup and unwinding per expiry, ready to read from /v1/fo/stats, or computed yourself per strike from the chain.

Futures rolls and basis

Every futures expiry per day, so you can build continuous series with your own roll rule and measure basis against spot.

IV history

At-the-money implied volatility and skew for NIFTY, BANKNIFTY and every F&O stock, every expiry, every day since 2010. NSE's daily files carry no IV at all.

Expiry day research

Weekly and monthly expiries side by side, including the changes as NSE moved expiry days.

Unusual futures OI, flagged daily

Every evening we compare each F&O stock's total futures open interest with its own previous 60 sessions and flag the days it moved far outside that normal, next to unusual volume, price moves, gaps, delivery and 52-week breaks in the cash market. One call gives you the day's list, strongest first.

Unusual activity
nse · 2026-11-09 · fut_oi
JUBLFOOD+15.4% OI · z 3.9
BOSCHLTD+12.0% OI · z 3.6

Usual daily OI change: under 0.3% for both.

₹599 / month

F&O comes with Retail, alongside unusual activity, screener, metrics and universes. Pro (₹4,999) for commercial use. F&O is not part of the free parquet dataset.

Source: NSE equity derivatives bhavcopy. Use is covered by the data terms.