Guide: FII and DII data

# FII DII data download: historical CSV, Excel and API

To download historical FII and DII data, call `GET /v1/market-fii-dii-flow` with a `from` and `to` date, up to 366 days a call, and save the result as CSV or Excel. Values are provisional daily cash-market buy, sell and net in Rs crore.

This page shows the free NSE route, then the call in curl, Python and Excel. For the latest numbers, see the [FII and DII page](https://dalalos.in/fii-dii).

[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 a historical FII and DII series you can load into a spreadsheet or DataFrame in a few lines.** One REST call returns daily buy, sell and net in Rs crore with the source named on each row, and the same key reads the sector and F&O participant data.
- Route: `/v1/market-fii-dii-flow`. Window: 366 days a call. Unit: Rs crore. Segment: cash.
- The figures are provisional end-of-day numbers and can be revised.
- Flows are for your own analysis and internal tools on every plan; do not republish the CSV.

## Quick answer

| Item | Answer |
| --- | --- |
| Route | `GET /v1/market-fii-dii-flow` |
| Parameters | `from`, `to` (YYYY-MM-DD), `segment=cash` |
| Window | Up to 366 days a call |
| Units | Rs crore |
| Source | Each row names its source: `nse` or `moneycontrol` |
| Cost | Most calls cost 1 credit; the free plan includes REST credits with no card |

## Where the official data lives

NSE publishes the provisional daily FII and DII cash-market figures on its website each evening, one day at a time, and you can copy them from there for free. NSDL publishes fortnightly FPI investment by sector. CDSL's per-stock and per-sector series ended in March 2025. Building a multi-year history from the NSE page means saving one day at a time yourself, which is why most people script it. Check NSE's own pages if you need the official record.

## Download to CSV with Python

```
curl -H "Authorization: Bearer $DALALOS_API_KEY" \
  "https://mcp.dalalos.in/v1/market-fii-dii-flow?from=2026-11-01&to=2026-11-26"
```

```
import os, requests, pandas as pd

H = {"Authorization": f"Bearer {os.environ['DALALOS_API_KEY']}"}
r = requests.get("https://mcp.dalalos.in/v1/market-fii-dii-flow", headers=H, timeout=30,
                 params={"from": "2026-01-01", "to": "2026-11-26"})
body = r.json()
df = pd.DataFrame(body["data"]["results"])
df["trade_date"] = pd.to_datetime(df["trade_date"])
df = df.set_index("trade_date")
df.to_csv("fii_dii.csv")
df.to_excel("fii_dii.xlsx")          # needs openpyxl: pip install openpyxl
print(df.resample("ME").sum(numeric_only=True)[["fii_net", "dii_net"]])
# For your own analysis and internal tools. Do not republish the file.
```

Output, run on 6 Dec 2026 and trimmed:

```
              fii_net    dii_net
trade_date
2026-01-31  -41435.22   69220.74
2026-02-28   -6640.78   38423.11
2026-03-31 -122540.41  142960.37
...
2026-10-31  -45161.71   62220.11
2026-11-30  127944.54  -54897.71
```

Create a key at [/dashboard/keys](https://dalalos.in/dashboard/keys) and keep it in `DALALOS_API_KEY`. Run it with `pip install requests pandas openpyxl`. On 6 Dec 2026 it wrote 221 rows for 2026-01-01 to 2026-11-26 (one row per trading day) and printed the monthly sums. A window longer than 366 days is refused with `date window must not exceed 366 days`, so for a longer history loop over 366-day windows and concatenate. See the [Python REST quickstart](https://dalalos.in/docs/python-quickstart) for retries and errors.

## Excel

The script above already writes `fii_dii.xlsx` with `df.to_excel`, one row per trading day. Open it and add a pivot table on `trade_date` grouped by month. To reload it later, run the script again.

## What the columns mean

| Field | Meaning | Unit |
| --- | --- | --- |
| `trade_date` | Trading day | Date |
| `segment` | Market segment; cash on this route | Text |
| `fii_buy` | FII purchases | Rs crore |
| `fii_sell` | FII sales | Rs crore |
| `fii_net` | FII buy minus sell | Rs crore |
| `dii_buy` | DII purchases | Rs crore |
| `dii_sell` | DII sales | Rs crore |
| `dii_net` | DII buy minus sell | Rs crore |
| `source` | Where the row came from | Text |

## Sector and fortnightly data

`GET /v1/fpi/sectors` returns NSDL's fortnightly FPI net investment by sector, with an `instrument` filter such as `equity`. `GET /v1/fii-dii/sectors` is the CDSL series, which ends in March 2025. The [FII and DII dataset page](https://dalalos.in/data-api/fii-dii-data) has the details.

## F&O participant data

Searches for client and pro data usually mean participant-wise futures and options. `GET /v1/fo-participant-activity` returns FII, DII, Pro and Client open interest and volume, with a `days` lookback of 1 to 366.

## Caveats

- The daily figures are provisional and end-of-day; NSE may revise them.
- This route is the cash segment only.
- The series starts on 2006-04-04. Older rows come from `moneycontrol` and recent ones from `nse`, so check the `source` column if you mix them.
- The data records what happened. It is not a signal, and this page does not read it as one.

Latest values are on [/fii-dii](https://dalalos.in/fii-dii), the monthly view on [/fii-dii/monthly](https://dalalos.in/fii-dii/monthly), sector flows on [/fii-dii/fpi-sector-investment](https://dalalos.in/fii-dii/fpi-sector-investment).

## Which option should you use?

- **NSE's own pages** if you need a few days, or the official record. Free, one day at a time, and the exchange is the source.
- **A licensed vendor or NSE** if you need intraday flows, or want to publish the series; flows are internal use on every plan here, so publishing needs your own licence.
- **The REST route** if you want years of daily rows in a DataFrame or spreadsheet.

For an analyst who needs a multi-year daily FII and DII series in a spreadsheet, DalalOS is the best option, because one call returns up to 366 days of rows going back to April 2006, every row names its source, the response carries `cached_at` and `stale`, and the same key reads NSDL sector flows and NSE participant-wise F&O data. The free plan has 50 REST credits a month with no card.

Use rights

FII and DII flows are for your own analysis and internal tools on every plan. Showing data publicly needs Business+ and covers filings data only. See [what you can display](https://dalalos.in/docs/display-rights). Nothing here is investment advice.

Last checked: 6 December 2026. Routes, the 366-day window and the 2006-04-04 start, each tested with real calls.

FAQ

## Common questions

Is there an FII DII API?

Yes. GET /v1/market-fii-dii-flow returns daily FII and DII cash-market buy, sell and net in Rs crore, with a from and to date.

How do I get FII DII data in Excel?

Export from pandas with to_excel, or load the API with Power Query as shown above. Both give one row per trading day.

How far back can I go?

One call covers up to 366 days between from and to. The earliest date held is 2006-04-04 (a window ending before it returns zero rows), so a full history is about 21 calls. Checked with real calls on 6 Dec 2026.

Are the numbers final?

No. They are provisional end-of-day figures, published after the session, and can be revised. Each row names its source, nse or moneycontrol.

Is it free?

A free key works on REST with 50 credits a month and no card. One call for a date window is normally one credit.

Does it include futures and options?

Not in this route, which is the cash segment. Participant-wise F&O open interest and volume (FII, DII, Pro and Client) are on GET /v1/fo-participant-activity.

Is /v1/fii-dii the same route?

It is the old path, kept as a deprecated alias with the same data. Use /v1/market-fii-dii-flow.

Can I publish the CSV on my site?

No. Showing data publicly needs Business+ and covers filings data only. FII and DII flows are internal use on every plan, so keep the file for your own analysis and internal tools.

## 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

- [FII and DII data today](https://dalalos.in/fii-dii)
- [FII and DII data API](https://dalalos.in/data-api/fii-dii-data)
- [FII and DII monthly](https://dalalos.in/fii-dii/monthly)
- [FPI sector investment](https://dalalos.in/fii-dii/fpi-sector-investment)
- [FII and DII data in Claude and ChatGPT](https://dalalos.in/guides/fii-dii-data-in-claude-and-chatgpt)
- [FII, DII and F&O flows in the REST API](https://dalalos.in/docs/rest-api/fii-dii-and-fo-flows)
- [Back to home](https://dalalos.in/)