fii-dii-flow-tracker — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited fii-dii-flow-tracker (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
This skill tracks Foreign Institutional Investor (FII) and Domestic Institutional Investor (DII) daily buy/sell flows in Indian equity markets and correlates them with Nifty 50 movement. It provides actionable insights on institutional positioning, flow trends, regime changes, and market implications.
Activate this skill when the user asks about:
Follow these steps in order when the user requests FII/DII flow analysis:
Use web search to retrieve the latest FII/DII cash market data from authoritative sources:
WebSearch: "FII DII data today {current_date} cash market net buy sell"
WebSearch: "NSDL FII activity {current_month} {current_year}"
WebSearch: "MoneyControl FII DII activity {current_date}"Primary data sources to query:
Extract the following data points:
Use web search to gather flow data for the trailing period:
WebSearch: "FII DII data last 10 trading days {current_month} {current_year}"
WebSearch: "FII net investment {current_month} {current_year} month to date"
WebSearch: "FII DII yearly data {current_year} year to date"Build a table of the last 10 trading days with daily FII and DII net values.
Use Groww MCP tools to get Nifty price data for correlation analysis:
# Get current Nifty LTP
get_ltp(search_queries=["NIFTY"], segment="CASH", query_type="stocks")
# Get historical Nifty data for correlation (last 30 trading days, daily candles)
fetch_historical_candle_data(
trading_symbol="NIFTY",
start_time="{30_trading_days_ago} 09:15:00",
end_time="{today} 15:30:00",
interval_in_minutes="1440",
exchange="NSE",
segment="CASH"
)Use resolve_market_time_and_calendar to determine the correct trading day range:
resolve_market_time_and_calendar(
time_period_unit="day",
number_of_periods=30,
period_relative_position="previous"
)Perform the following analyses on the collected data:
A. Daily Flow Assessment
B. Trend Analysis (10-day rolling)
C. Monthly and Yearly Context
D. FII:DII Flow Ratio
Classify the current institutional flow regime:
| Regime | Definition | Market Implication |
|---|---|---|
| FII Net Buyer | FII net positive for 5+ consecutive days or MTD > +5000cr | Bullish for Nifty, INR strengthening |
| FII Net Seller | FII net negative for 5+ consecutive days or MTD < -5000cr | Bearish pressure, INR weakening |
| DII Absorption | FII selling but DII buying offsetting >70% of FII outflow | Market finds floor, limited downside |
| Dual Buying | Both FII and DII net buyers for 3+ days | Strong rally likely, broad-based buying |
| Dual Selling | Both FII and DII net sellers (rare) | Sharp correction risk, liquidity withdrawal |
| Transition Phase | FII switching from seller to buyer (or vice versa) within last 5 days | Trend reversal potential, watch for confirmation |
Analyze the relationship between institutional flows and Nifty price action:
Use the calculator tool for correlation computation if needed:
calculator(list_of_expressions=[
"correlation coefficient formula components"
])If the user requests sector-level analysis, use web search:
WebSearch: "FII DII sector wise investment {current_month} {current_year}"
WebSearch: "FII portfolio allocation India sectors {current_year}"Key sector dynamics:
Use the report template from assets/flow_report_template.md to structure the output. Fill in all sections with the analyzed data.
Present the report in a clear, structured format with:
| Metric | Calculation | Significance |
|---|---|---|
| FII Daily Net | FII Buy - FII Sell | Direction of foreign capital flow |
| DII Daily Net | DII Buy - DII Sell | Direction of domestic capital flow |
| FII MTD | Sum of FII daily net for current month | Monthly trend strength |
| FII YTD | Sum of FII daily net for current calendar year | Annual positioning |
| DII MTD | Sum of DII daily net for current month | Monthly domestic support |
| DII YTD | Sum of DII daily net for current calendar year | Annual domestic positioning |
| FII:DII Ratio | FII Net / DII Net | Institutional alignment |
| Flow-Nifty Correlation | Statistical correlation over 20 days | Predictive strength |
| Absorption Rate | DII Net / abs(FII Net) when FII selling | DII's ability to offset FII |
| Level | Daily (crores) | MTD (crores) | YTD (crores) |
|---|---|---|---|
| Minor | < 1,000 | < 5,000 | < 25,000 |
| Moderate | 1,000 - 2,000 | 5,000 - 10,000 | 25,000 - 50,000 |
| Significant | 2,000 - 5,000 | 10,000 - 25,000 | 50,000 - 1,00,000 |
| Major | > 5,000 | > 25,000 | > 1,00,000 |
references/flow_analysis_methodology.md - Comprehensive methodology for analyzing FII/DII flowsreferences/flow_interpretation_guide.md - Practical guide for interpreting flow signalsassets/flow_report_template.md - Markdown template for generating flow reportsUse whichever broker MCP is connected (Groww or Zerodha Kite):
| Action | Groww MCP | Zerodha Kite MCP | Fallback |
|---|---|---|---|
| Nifty LTP | get_ltp | get_ltp | yfinance |
| Historical data | fetch_historical_candle_data | get_historical_data | yfinance |
| Trading calendar | resolve_market_time_and_calendar | — | Web search |
| Market movers | fetch_market_movers_and_trending_stocks_funds | — | Web search |
| Shareholding data | fetch_stocks_fundamental_data | — | Web search |
| Portfolio check | get_equity_portfolio_holdings | get_holdings | — |
| Tool | Purpose |
|---|---|
WebSearch | Fetch latest FII/DII data from NSDL, NSE, MoneyControl |
WebFetch | Scrape specific FII/DII data pages for structured data |
calculator | Compute flow ratios, correlations, and aggregates |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.