---
title: "Method: Leverage and positioning"
url: https://tipsheet.markets/methods/leverage/
description: "How tipsheet.markets computes leverage and positioning: sources, start dates, checks and caveats."
updated: 2026-10-29
publisher: tipsheet (https://tipsheet.markets/)
cite: "tipsheet, “Method: Leverage and positioning”, 29 October 2026, https://tipsheet.markets/methods/leverage/"
---

[Methods](https://tipsheet.markets/methods/)

# Leverage and positioning: methods

**Code:** `pipeline/tipsheet/compute/leverage.py`, `publish/leverage.py`, step `steps/data_leverage.py`. **Bundles:** `leverage/*`.

## Sources

All are NSE public archives, ingested with contracts and audits:

| Dataset | What it holds | From |
| --- | --- | --- |
| `nse_mtf_2004_2012`, `nse_mtf_2013_2022`, `nse_mtf` | Daily margin trading (MTF) summary, plus each security’s funded quantity and amount | 2004-04-13 |
| `nse_participant_oi` | Open interest by Client, DII, FII and Pro, split into futures, options, index and stock, long and short | 2012-01-02 |
| `nse_fii_derivatives` | FII buy and sell values and open interest by product | 2014-12-01 |

## Definitions

- **MTF book:** the reported amount financed outstanding at end of day, in ₹ crore (source: ₹ lakh). The public report does not establish gross client purchase value or a verified net broker loan. See `mtf_detail.md` for funded-unit references, margin adjustments and the October 2025 reporting change.
- **Fresh exposure and liquidation:** reported activity, not clean investor cash flows. The legacy net-new field is fresh minus liquidated. Reporting corrections and the October 2025 format change affect interpretation.
- **Book ÷ market cap:** the book in basis points of the previous month-end NSE market capitalisation (from business growth).
- **Top securities:** the latest day’s per-security amounts, summed by symbol (the source sometimes repeats a symbol). Share of book, and change against the session 21 trading days earlier.
- **Index-futures long share:** longs ÷ (longs + shorts) for each participant. Options tilt: net index calls held minus net index puts held, in contracts.

## Checks

- **MTF identity:** opening book + fresh − liquidated = closing book, within Rs 0.001 crore on all 5,532 sessions. The security rows sum to the closing book (ingestion audit).
- **Independent cross-check:** my 2026-09-29 book (Rs 1,50,838 crore, 15,083,812.80 lakh) equals the Aftermarket Report’s figure exactly.
- **Participant OI** (ingestion audit): participants sum to the total, market longs equal shorts, and the legs sum to the totals. Since 2015-09 NSE rounds fractional contracts, so totals miss by one or two contracts.

## Caveats

- **The MTF regime changed in 2017.** The book was Rs 100–300 crore before 2017 and grew quickly from then, as margin trading became widely offered. Charts start in June 2017; the full history is in the data.
- **Gaps:** 43 MTF sessions (mostly 2019–2022) are missing at source and shown as gaps. 41 recent MTF sessions are NSE’s provisional figures, because NSE never published a final.
- **Lot sizes change** (for example November 2024), which moves contract counts without any change in exposure. Use shares and percentiles across years.
- **Not a signal.** The Aftermarket Report tested positioning measures built from these files, and none predicted returns reliably. They are shown as context.

## F&O bhavcopy analytics

Bundles: `leverage/fo/*` and `leverage/stats/{nifty_pcr_oi,sensex_pcr_oi,nifty_basis_ann,stocks_rollover}`. Code: `compute/fo_analytics.py` and `publish/fo_analytics.py`; step `fo_analytics`.

**Source:** the NSE F&O bhavcopy, one row per contract per day, from 2020-01-01 (eras `nse_fo_bhavcopy_2020h1` onward). Two layouts:

- **UDiFF** (from 2024-07-08) prints the lot size and the underlying’s close.
- **Legacy** (to 2024-07-05) prints neither. For those rows:
  
  - **Lot size is inferred** per day, symbol and expiry. Open interest and its daily change are whole multiples of the lot, so their GCD is the lot, or a multiple of it (thin contracts), or a divisor (positions straddling a lot revision). Where a future of the same expiry traded, the GCD is snapped to the nearest divisor or multiple matching traded value ÷ (contracts × close). Weekly option expiries have no future of their own, so the GCD is kept unless it is outside 0.6–1.7× the symbol’s futures estimate (Nifty’s July 2021 weeklies still traded at the old lot of 75 while the monthly future was at 50).
  - **Tested on the UDiFF era**, where the true lot is known: the rule recovers it on 99.7% of symbol-expiry-days.
  - **Tested on the legacy era against NSE’s published daily premium turnover** (business growth): derived index-option premium is within 0.1% on every session in 2020–2024 but one (0.6%); stock options are within about 1×10⁻⁴ on average (legacy values are printed in Rs lakh to two decimals).
  - **The underlying close** comes from Nifty index history (Nifty 50, Bank, Next 50, Midcap Select) and the equity bhavcopy EQ close (stocks). FINNIFTY has no index history before 2026, so its legacy basis is blank (39% coverage).
- **Missing session:** 2021-03-30 traded, but NSE serves no bhavcopy for it on any route. My data archive records it as a reviewed source gap, and the premium check skips March 2021.

**BSE** (`bse_derivatives_bhavcopy`, from 2024-01-01): the same panels for the Sensex and Bankex (`leverage/fo/index_sensex_daily`, `index_bankex_daily`), BSE’s index futures and options OI and premium as `bse_*` columns of `leverage/fo/market_daily`, and BSE and combined expiry-day shares. BSE prints lot size, the underlying price and option premium itself. The 2023 files print no lot size or price, so they are not used (BSE’s derivatives were dormant until the Sensex relaunch on 15 May 2023; 15 sessions from 3 Apr to 4 May 2023 have no file at all, a reviewed source gap in the archive). **Check** (`bse_vs_bse_statistics`): on all 699 common days from 2024 to 26 Oct 2026, the bhavcopy’s contracts, premium and notional turnover equal BSE’s published daily statistics (largest gaps 0, 2×10⁻⁵ and 2×10⁻⁷), and open interest (on BSE’s basis, below) is within 0.2%. BSE’s file for a session can land a day after NSE’s; that day’s BSE columns are blank, not zero.

**Identities**

- **Open interest counts contracts still open after the close** (expiry later than the day). A contract’s closing OI is still printed on its expiry day, but it settles that evening. Counted, it roughly doubled NSE’s OI on monthly expiry days and inflated BSE’s up to tenfold on Sensex expiry days (since September 2025 over 90% of Sensex OI on an expiry Thursday is in the expiring weekly). SEBI’s month-end NSE OI leaves it out: NSE month-end contracts on this basis match the SEBI Bulletin exactly in all 80 months from January 2020 to August 2026, and value within 0.2% from July 2024 (the legacy files’ value runs 3–14% low from late 2022 to mid-2024, where some stock options have no EQ close to value them at). BSE’s own daily and month-end OI keep the expiring contracts; on that basis the bhavcopy matches BSE. Before 28 Oct 2026 the panels counted expiring contracts, so expiry-day PCRs (341 Nifty sessions) and OI values changed.
- Open interest is reported in units. Contracts = OI ÷ lot size. OI changes with lot-size revisions, so the bundles favour ratios and rupee values.
- For options, traded value is notional: (strike + premium) × quantity. Premium turnover = traded value − strike × contracts × lot size.
- **Check:** monthly sums of this derived premium against NSE’s published premium turnover in business growth, complete months from Jan 2020 (March 2021 skipped; the current month is left out because both sides are month-to-date, cut at different sessions): the largest relative gap is 2.3×10⁻⁴ for index options and 2.3×10⁻³ for stock options (May 2020); from Jul 2024, under 2×10⁻⁷.

**Measures**

- **Put-call ratio (OI)** = put OI ÷ call OI in contracts, per index and for stock options in aggregate.
- **Five-session average** of the PCR smooths the expiry-cycle saw-tooth. Its **percentile** is taken among sessions from 20 November 2024 (SEBI’s index-derivative measures: one weekly expiry per exchange, bigger lots) up to that day, from the 60th such session: positioning before then was spread over more weekly expiries, so the 2020–24 range is not a like-for-like yardstick. No look-ahead. Stock options get the same columns in `leverage/fo/stock_options_pcr_daily`.
- **Nearest expiry and later expiries:** PCR split at the nearest option expiry that does not lapse that day (the basis rule), with the nearest expiry’s share of options OI (`near_share_pct`). For Nifty the nearest expiry held a median 57% of open contracts over the past year and its PCR moves about four times as much day to day as the later expiries’ (median absolute daily change 0.18 against 0.04 since the curbs). The other indices have only monthly expiries and most or nearly all OI in the nearest one, so the page shows the split for Nifty only.
- **Futures basis** = the nearest future that doesn’t expire that day, against the underlying: (future ÷ spot − 1), and annualised over calendar days to expiry. On 1 Oct 2026, Nifty’s basis was 6.8% a year.
- **Rollover** at each monthly expiry: on the expiring contract’s last day, the share of futures OI (by value) in later expiries. It is computed for Nifty, Bank Nifty and all stock futures together. At the 29 Sep 2026 expiry it was 74%, 80% and 91%.
- **Expiry-day (0DTE) share:** the share of a month’s index-option premium traded in contracts on their expiry day.
  
  - It climbed from about 15% in 2020 to 18% in 2021, 22% by end-2022, 31% by end-2023 and 37–38% in Q2–Q3 2024, as weekly expiries spread across indices and days.
  - It fell to 14–18% after SEBI cut weekly expiries to one benchmark index per exchange from 20 November 2024 (16% in Q1 2025).
  - It has since drifted back to about 26% by quarter (31% in Sep 2026).
  - **BSE runs far higher:** 79–88% a month from January to October 2024, then 40–54% a month from January 2025 (41% in Sep 2026). BSE’s index-option premium was 52% of NSE’s in Sep 2026, so across both exchanges (`all_share_0dte_pct`, premium-weighted) the share was 34% against NSE’s 31%.
- **Market-wide OI value:** futures at settlement value; options at the underlying’s value (notional exposure).

All of this is descriptive (see the null results above).

## Where the borrowed money sits

Bundle `leverage/channels/monthly`; code `compute/leverage_channels.py`, step `leverage_channels` (needs `leverage`, `credit`, `pledges`). Page: `/leverage/#brokers-banks`.

- **Bank loans against shares:** RBI’s sectoral deployment of bank credit, “Advances to individuals against shares, bonds, etc.” (personal loans, item 4.4 in recent releases), loans outstanding at each reporting date, selected scheduled commercial banks covering about 90 to 95% of bank credit (RBI states 90% in 2018–19 releases and 95% from 2023). Monthly from April 2007. RBI caps what banks may lend individuals against shares, which is one reason the figure is small.
- **MTF book:** NSE’s outstanding reported MTF amount on the last session on or before each RBI date. It is the purchase value of open funded positions at average cost and includes the client’s own margin, so it is larger than the brokers’ loan. The page says how many times the bank figure the book would be even if halved.
- **Promoter pledges:** promoter shares pledged or otherwise encumbered, at market value, latest quarter (`pledges` step). Collateral, not a loan amount.
- **Not covered:** NBFC lending against shares, which has no public aggregate and is probably the largest channel.
- **Finding (descriptive):** the MTF book passed bank loans against shares for good in October 2020 (0.6 times the bank figure in April 2020, 13 times in August 2026). The timing matches SEBI’s 2020–21 margin-pledge and peak-margin rules; the page states the coincidence, not a cause.

## Expiry study

Bundles `fo/expiry/{worthless_monthly,maxpain_nifty,maxpain_banknifty}`; code `compute/fo_expiry.py`, run inside step `fo_analytics` on the same contract table. Page: `/fo/premium/#worthless` and `#max-pain`. Pre-registered as C120–C121 in `docs/research/site_calculations_spec.md`, with results logged there.

- **Worthless:** of index-option contracts open at the close of the last session before expiry, those with no intrinsic value at the expiry-day close (calls struck at or above it, puts at or below it). Shares by contracts (OI ÷ lot size) and by premium value that session (settlement price × open units). Expiries whose settlement price is unknown (FINNIFTY and other indices without index history before 2026) are left out.
- **Max pain:** for an expiry E on session t, the listed strike minimising Σ calls OI × max(K\* − K, 0) + Σ puts OI × max(K − K\*, 0) over contracts of E open at t, ties to the strike nearest the close. Tested against the expiry-day close: regression of the move on the gap (HC1), and the share of expiries moving towards max pain (binomial). Both fail; max pain is a worse guess of the settlement than the previous close.
- The scatter on the page leaves out expiries whose gap exceeds 3% (the two March 2020 expiries) so the cloud is readable; they are in the test and named under the chart.

This note is the repository file `docs/methods/leverage.md`, rendered as-is.

---

Historical research, not investment advice. This page in HTML: https://tipsheet.markets/methods/leverage/. Every published dataset: https://tipsheet.markets/data/v1/manifest.json. A map of the site: https://tipsheet.markets/llms.txt
