Data to 5 October 2026

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 by the Data bank with contracts and audits:

DatasetWhat it holdsFrom
nse_mtf_2004_2012, nse_mtf_2013_2022, nse_mtfDaily margin trading (MTF) summary, plus each security’s funded quantity and amount2004-04-13
nse_participant_oiOpen interest by Client, DII, FII and Pro, split into futures, options, index and stock, long and short2012-01-02
nse_fii_derivativesFII buy and sell values and open interest by product2014-12-01

Definitions

Checks

Caveats

F&O bhavcopy analytics

Bundles: leverage/fo/* and leverage/stats/{nifty_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 (Data bank eras nse_fo_bhavcopy_2020h1 onward). Two layouts:

Identities

Measures

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

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