Skip to content

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.

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

The FII and DII download at a glance
ItemAnswer
RouteGET /v1/market-fii-dii-flow
Parametersfrom, to (YYYY-MM-DD), segment=cash
WindowUp to 366 days a call
UnitsRs crore
SourceEach row names its source: nse or moneycontrol
CostMost 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 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 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

Fields in each row
FieldMeaningUnit
trade_dateTrading dayDate
segmentMarket segment; cash on this routeText
fii_buyFII purchasesRs crore
fii_sellFII salesRs crore
fii_netFII buy minus sellRs crore
dii_buyDII purchasesRs crore
dii_sellDII salesRs crore
dii_netDII buy minus sellRs crore
sourceWhere the row came fromText

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 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, the monthly view on /fii-dii/monthly, sector flows on /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. Nothing here is investment advice.

Last checked: . 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.

KEEP EXPLORING