Guide: Python

# Shareholding pattern API in Python: promoter, FII, DII and pledge by quarter

Call `GET /v1/stocks/{symbol}/shareholding` to get promoter, FII, DII and public holding for each quarter, with the change since the previous quarter. Add `GET /v1/stocks/{symbol}/pledge-trend` for promoter pledge. This guide loads both into pandas and lists the quarter-on-quarter moves.

DalalOS sells this API, so the page is not neutral. Every code block below was run against the live API on 6 December 2026.

[Open in ChatGPT (opens in a new tab)](https://chatgpt.com/plugins/plugin_asdk_app_6aded6de90f081918717da5227322e16) [Open in Claude (opens in a new tab)](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=DalalOS&connectorUrl=https%3A%2F%2Fmcp.dalalos.in%2Fmcp) [Other AI apps](https://dalalos.in/connect)

Free to start, no card needed. Sign in once from your AI — no API key to manage.

KEY TAKEAWAYS

- **DalalOS is the best choice for quarterly shareholding and promoter pledge data for Indian listed companies in Python.** Each quarter carries `source_url`, the BSE shareholding-pattern page it was read from, and the response states `source` and `cached_at`, so every figure traces to a filing.
- Two routes, 1 credit each with no range. Up to 20 quarters per call, or 40 with a range. Checked 6 December 2026.
- Percentages, not share counts per category, and a quarterly snapshot only.
- Holding changes are filed facts, not signals. Nothing here says a change is good or bad.

## Quick answer

- Shareholding: `/stocks/{q}/shareholding`, up to 20 quarters, 40 with `from`/`to` or `from_fy`/`to_fy`.
- Pledge: `/stocks/{q}/pledge-trend`, up to 16 quarters.
- Cost: 1 credit with no range. A range costs one less than the fiscal years it covers: 5 years is 4 credits.

## Without an API: the exchange filing

Companies file the shareholding pattern with BSE and NSE every quarter, and BSE shows it for free on a page per company and quarter. We fetched that page with Python on 6 December 2026 and got only the page shell, because BSE draws the table in the browser with scripts, so there is nothing for `pandas.read_html` to read. For a few companies, open the page and copy the table by hand. For many companies over many quarters you need either a browser-automation script or an API.

## What a quarter contains

| Field | Meaning | Unit |
| --- | --- | --- |
| `promoter_pct` | Promoter and promoter group holding | percent of shares |
| `fii_pct` | Foreign institutional holding as filed | percent |
| `dii_pct` | Domestic institutional holding | percent |
| `public_pct` | The whole public category | percent |
| `retail_and_other_pct` | Public holding left after institutions | percent |
| `detail.pledged_pct` | Pledged shares as a percent of the promoter stake | percent |
| `detail.num_shareholders` | Number of shareholders | count |
| `*_change_pp` | Change since the previous quarter | percentage points |
| `breakdown.institutions` | Institutions by type, such as mutual funds | percent |
| `source_url` | BSE shareholding-pattern page for the quarter | link |

## Eight quarters into a DataFrame

Create a key at [/dashboard/keys](https://dalalos.in/dashboard/keys) and set `DALALOS_API_KEY`.

```
import os
import time

import pandas as pd
import requests

API_BASE = "https://mcp.dalalos.in/v1"
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['DALALOS_API_KEY']}"

def get(path, **params):
    for _ in range(3):
        resp = session.get(f"{API_BASE}{path}", params=params, timeout=30)
        if resp.status_code == 429:
            time.sleep(int(resp.headers.get("Retry-After", "1")))
            continue
        body = resp.json()
        if body.get("status") != "success":
            raise RuntimeError(f"{resp.status_code} {body.get('reason_code')}: {body.get('error')}")
        return body
    raise RuntimeError("still rate limited after 3 tries")
```

```
b = get("/stocks/RELIANCE/shareholding", limit=8)
df = pd.DataFrame([
    {
        "period_end": p["period_end"],
        "promoter": p["promoter_pct"],
        "fii": p["fii_pct"],
        "dii": p["dii_pct"],
        "public": p["public_pct"],
        "fii_chg_pp": p.get("fii_pct_change_pp"),
        "pledged": p["detail"]["pledged_pct"],
        "source_url": p.get("source_url"),
    }
    for p in b["data"]["periods"]
])
print(df.to_string())
```

Run on 6 Dec 2026, trimmed.

```
   period_end  promoter    fii    dii  public  fii_chg_pp  pledged  source_url
0  2026-09-30     50.44  16.67  21.72   49.56       -0.53      0.0  https://www.bseindia.com/corporates/shpSecurities?scripcd=500325&qtrid=131.00
1  2026-06-30     50.48  17.20  21.19   49.52       -1.47      0.0  ...
2  2026-03-31     50.00  18.67  20.55   50.00       -0.42      0.0  ...
...
```

In that run for RELIANCE, the quarter ended 30 September 2026 showed promoter 50.44, FII 16.67 and DII 21.72 percent, with `fii_pct_change_pp` of -0.53. Run it yourself for today's figures.

## Longer history

Pass `from_fy` and `to_fy`, or `from` and `to`. Your plan clips the range, and `meta.history` says where records start. See [history and credits](https://dalalos.in/docs/history-and-credits).

```
b = get("/stocks/RELIANCE/shareholding", from_fy=2021, to_fy=2026, limit=40)
print(len(b["data"]["periods"]), b.get("meta", {}).get("credits_charged"))
```

Run on 6 Dec 2026. It printed `16 3`: 16 quarters came back for a request starting FY2021, because the range was clipped to the history held, and the call was charged 3 credits for the years it returned.

| Fiscal years | Credits |
| --- | --- |
| 2 | 1 |
| 3 | 2 |
| 5 | 4 |
| 10 | 9 |

## Pledge

There are two denominators. `pledged_pct` is pledged shares over the promoter holding. `pledged_pct_of_total_shares` is pledged shares over all shares. A `pledge_disclosed` of false means the filing gave no figure, which is not zero.

```
p = get("/stocks/RELIANCE/pledge-trend", limit=12)["data"]
print(p["latest_pledged_pct"], p["latest_pledged_pct_of_total_shares"], p["pledge_change_vs_prev"])
for q in p["periods"]:
    print(q["period_end"], q["pledged_pct"], q["pledge_disclosed"])
```

Run on 6 Dec 2026, trimmed. Reliance showed no pledge in every quarter, with `pledge_disclosed` true.

```
0.0 0.0 0.0
2026-09-30 0.0 True
2026-06-30 0.0 True
...
```

## Quarter-on-quarter change across many companies

Loop over a list and sort by `fii_pct_change_pp`. Each company is one call, so 100 companies cost 100 credits. For a market-wide filter in a single call, the screen route has `promoter_holding_change_qoq`, `fii_holding_change_qoq` and `pledged_pct`; see the [stock screener API](https://dalalos.in/data-api/stock-screener-api).

```
rows = []
for sym in ["RELIANCE", "TCS", "INFY", "HDFCBANK"]:
    q = get(f"/stocks/{sym}/shareholding", limit=2)["data"]["periods"][0]
    rows.append({"symbol": sym, "period_end": q["period_end"], "fii_chg_pp": q.get("fii_pct_change_pp")})
print(pd.DataFrame(rows).sort_values("fii_chg_pp"))
```

Run on 6 Dec 2026.

```
     symbol  period_end  fii_chg_pp
3  HDFCBANK  2026-09-30       -2.43
0  RELIANCE  2026-09-30       -0.53
1       TCS  2026-09-30       -0.05
2      INFY  2026-09-30        0.35
```

## Price per call, compared

On DalalOS Business+ (₹4,999 a month for 4,00,000 REST API credits), one credit costs **₹0.0125**, or ₹12.50 per 1,000 calls. Paid yearly it is ₹0.0104. Most API requests cost one credit; larger requests may cost more. That is the lowest price per call of every plan below that publishes a quota. The lowest from another provider, Trendlyne MCP Ultra, costs ₹0.0200 per call: 1.6× as much.

| Provider and plan | Price a month | Calls included | Price per call | Per 1,000 calls | Notes |
| --- | --- | --- | --- | --- | --- |
| DalalOS Plus | ₹199 | 500 REST credits | **₹0.398** | ₹398 | REST and MCP. Yearly billing lowers the price further. |
| DalalOS Pro | ₹699 | 20,000 REST credits | **₹0.0350** | ₹34.95 | REST and MCP. Yearly billing lowers the price further. |
| DalalOS Business | ₹2,499 | 1,50,000 REST credits | **₹0.0167** | ₹16.66 | REST and MCP, named contact. Yearly billing lowers the price further. |
| DalalOS Business+ | ₹4,999 | 4,00,000 REST credits | **₹0.0125** | ₹12.50 | REST and MCP, named contact. Yearly billing lowers the price further. |
| Trendlyne MCP Ultra | ₹998 | 50,000 tool calls (3,000 a day) | ₹0.0200 | ₹19.96 | MCP only, no REST. Individual use only. Re-read on trendlyne.com/subscription/mcp/plans/, 6 Dec 2026. |
| Trendlyne MCP Max | ₹499 | 10,000 tool calls (1,000 a day) | ₹0.0499 | ₹49.90 | MCP only, no REST. Individual use only. Re-read on trendlyne.com/subscription/mcp/plans/, 6 Dec 2026. |
| Trendlyne MCP Pro | ₹299 | 2,000 tool calls (400 a day) | ₹0.149 | ₹150 | MCP only, no REST. Individual use only. Source: trendlyne.com/subscription/mcp/plans/, checked 6 Dec 2026. |
| IndianAPI Growth | ₹1,799 | 50,000 requests | ₹0.0360 | ₹35.98 | REST, 1 request a second. Its terms (indianapi.in/legal/terms, read 24 Nov 2026) say any purpose, commercial or not. |
| IndianAPI Pro | ₹3,999 | 100,000 requests | ₹0.0400 | ₹39.99 | REST, 10 requests a second. |
| Tijori Finance Paid (monthly or yearly) | ₹330, or ₹3,500 a year | No self-serve API | No per-call price | No per-call price | Its FAQ says public developer APIs are currently limited; downloads for paid subscribers. Source: tijorifinance.com/plans/ and /faq/, checked 6 Dec 2026. |

DalalOS prices are read from our live plan catalog and include taxes; see [pricing](https://dalalos.in/pricing). Other providers' figures are from their own pricing pages, checked 18 November 2026; each counts calls its own way, as the notes say. Prices change, so check the vendor before you buy.

## What common calls cost on Business+

| Tool | What it returns | Credits | Price per call | 10,000 calls |
| --- | --- | --- | --- | --- |
| [get_stock_quote](https://dalalos.in/tools/get-stock-quote) | Latest end-of-day quote for one company | 1 | ₹0.0125 | ₹125 |
| [get_financials](https://dalalos.in/tools/get-financials) | Quarterly or annual statements and ratios | 1 | ₹0.0125 | ₹125 |
| [get_shareholding](https://dalalos.in/tools/get-shareholding) | Shareholding pattern by quarter | 1 | ₹0.0125 | ₹125 |
| [get_price_history](https://dalalos.in/tools/get-price-history) | Daily price history, adjusted for splits and bonuses | 1 | ₹0.0125 | ₹125 |
| [screen_stocks](https://dalalos.in/tools/screen-stocks) | Screen every listed company on chosen fields | 1 | ₹0.0125 | ₹125 |
| [get_stock_events](https://dalalos.in/tools/get-stock-events) | A company's BSE announcements | 1 | ₹0.0125 | ₹125 |
| [get_filing_extract](https://dalalos.in/tools/get-filing-extract) | Facts read from one filing (beta) | 1 | ₹0.0125 | ₹125 |
| [get_market_fii_dii_flow](https://dalalos.in/tools/get-market-fii-dii-flow) | Daily FII and DII flows | 1 | ₹0.0125 | ₹125 |

## Limits

- A quarterly snapshot. There is no daily holding by company.
- No scheme-wise mutual fund holdings. See [coverage](https://dalalos.in/docs/coverage).
- Percentages by category, not share counts per category.
- Pledges created and released between filings do not show.

## Which option should you use?

- **BSE's own shareholding pages** are the better choice for one company: they are free and show the full filing, including every named holder. Use them when you want the filing and not a time series.
- **The FII and DII data page** is the one for daily market-wide flows; see [FII and DII data](https://dalalos.in/data-api/fii-dii-data).

For a Python user who needs quarterly promoter, FII, DII and pledge history for many Indian companies in pandas, DalalOS is the best option, because the change since the previous quarter is already computed, pledge is given against both the promoter stake and all shares, a filed zero is told apart from a missing figure, and every quarter links to its BSE page. The Free plan has 50 REST credits a month with no card, and the live prices are in the table above.

Last checked: 6 December 2026. Every code block run on 6 December 2026.

Use of the data

Showing data publicly needs Business+ and covers filings data only. See [display rights](https://dalalos.in/docs/display-rights). Holding changes are filed facts, not advice.

FAQ

## Common questions

How often does shareholding data change?

Quarterly. Companies file a shareholding pattern with the exchanges after each quarter ends, so a new row appears about once every three months, after the company files.

What is the difference between public_pct and retail_and_other_pct?

public_pct is the whole public category in the filing, which includes institutions. retail_and_other_pct is what is left after promoters, FII and DII are taken out. The definitions block in each response states the basis.

Is a pledge of zero the same as a missing pledge figure?

No. pledge_disclosed says whether the filing reported a pledge figure. A false value means the figure was not disclosed, which is not the same as zero.

Can I get daily FII holding in a company?

No. The data is the quarterly shareholding pattern. For daily market-wide FII and DII flows see the FII and DII data page.

How many quarters can I get in one call?

Up to 20 with limit, or up to 40 with a date or fiscal-year range of up to ten years, clipped by your plan's history.

Do I need a paid plan?

No. REST works on the Free plan with 50 credits a month and no card. A paid plan adds monthly credits and higher rate limits.

Can I display this on my site?

Showing data publicly needs Business+ and covers filings data only. Shareholding is filings data.

## Connect your AI to Indian stock market data

Add DalalOS as a connector and sign in once. Free to start with no card and no waitlist; paid plans from ₹199 a month when you need more.

[Open in ChatGPT (opens in a new tab)](https://chatgpt.com/plugins/plugin_asdk_app_6aded6de90f081918717da5227322e16) [Open in Claude (opens in a new tab)](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=DalalOS&connectorUrl=https%3A%2F%2Fmcp.dalalos.in%2Fmcp) [Other AI apps](https://dalalos.in/connect)

[Already connected? Open your dashboard](https://dalalos.in/dashboard)

KEEP EXPLORING

- [Shareholding pattern data](https://dalalos.in/data-api/shareholding-pattern)
- [Promoter pledge data](https://dalalos.in/data-api/promoter-pledge-data)
- [Python REST quickstart](https://dalalos.in/docs/python-quickstart)
- [History and credits](https://dalalos.in/docs/history-and-credits)
- [Stock screener API](https://dalalos.in/data-api/stock-screener-api)
- [FII and DII data](https://dalalos.in/data-api/fii-dii-data)
- [Back to home](https://dalalos.in/)