FII/DII data API: build a flows dashboard that explains the market
How to model foreign and domestic institutional flows, which segments matter, and what to show in a dashboard so users do not misread a single day.

FII and DII data is quoted every evening as if one number explains the market. It does not. A useful dashboard shows the segment, the period and the persistence of the flow. The API is the easy part; the framing is the product.
Model the segments separately
Cash, index futures, stock futures and options are different exposures. A net cash purchase is not the same signal as a long position in index futures. Store each segment separately and aggregate only when the label makes the aggregation honest.
- Cash: actual buying and selling in the cash market.
- Index futures: broad index exposure.
- Stock futures: company-level positioning.
- Options: often hedging, so a net number can mislead.
Keep daily and monthly views
A daily view is for recency. A monthly view is for context. Show both, and make the selected period obvious. A single-day outflow that looks dramatic can disappear inside a monthly trend.
fii = requests.get(
"https://api.fincrux.org/api/market/fii",
params={"api_key": API_KEY},
timeout=30,
).json()
dii = requests.get(
"https://api.fincrux.org/api/market/dii",
params={"api_key": API_KEY},
timeout=30,
).json()What the dashboard should show
- The selected segment and period in the title, not in a tooltip.
- Net flow and gross buy/sell values where the source provides them.
- A time series, not only the latest number.
- A comparison with price and cash-market activity.
- The last update time and the source of the data.
Avoid the single-day trap
If the chart starts at the latest day, every move looks important. Use a window that includes quiet days. Let users switch between one week, one month and one quarter, and keep the zero line visible.
Ship the reading experience first
A flows dashboard that explains the segment, the window and the source is more useful than a real-time ticker with no context. Build the explanation into the interface before adding alerts.

