Live.  Fetched directly from NSE's own official MTF disclosures — no third-party data relay. Not investment advice. See full disclaimer in footer.
M

Margin Trading Facility API

Free, key-less, CORS-enabled JSON API for India's NSE Margin Trading Facility book — fetched directly from NSE's own daily disclosure files. No sign-up, no rate limit enforced (please cache rather than polling faster than every few minutes — NSE itself only republishes once per trading day).

License & attribution (required)

This API is free to use, including commercially, under CC BY 4.0 — provided that anywhere you display or redistribute this data, you credit "Margin Trading Facility" with a visible, clickable link back to https://margintradingfacility.com. A footer line like "MTF data via Margin Trading Facility" linking to this site satisfies that condition.

Endpoints

GET/api/latest

Whole-market NSE MTF book: total outstanding, change vs. ~1 month ago, fresh exposure/liquidation for the latest trading day, plus a recent daily series.

curl https://margintradingfacility.com/api/latest
GET/api/stocks?limit=50

Per-stock MTF book, NSE close price, and 7D/30D change windows for the largest funded stocks. Omit limit to get the default top ~150.

curl "https://margintradingfacility.com/api/stocks?limit=50"
GET/api/stock/{ticker}

Full detail for one stock: current book, rank, 1D/1W/1M/3M/6M change windows, and a ~3-month price-vs-book series. 404 if the ticker isn't currently MTF-funded.

curl https://margintradingfacility.com/api/stock/RELIANCE
GET/api/sectors

MTF book aggregated by sector (manually-classified — NSE's own files don't carry a sector field), with 1D/1W/1M change.

curl https://margintradingfacility.com/api/sectors
GET/api/openapi.json

Machine-readable OpenAPI 3.1 spec for all of the above.

curl https://margintradingfacility.com/api/openapi.json

Conventions