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.71Create 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
| 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 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
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?
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