Logo Fii Dii Flows

Fii Dii Flows

Cộng đồng
Shubhamkumartrichy
fii-dii-flows

Institutional money flow in Indian equities, from CSVs you download: FII/FPI and DII cash flows (₹ crore) with 5/10/20-session and month-to-date sums, streaks, how much FII selling DIIs absorbed, largest days and NIFTY correlation; NSE participant-wise F&O open interest (FII index-futures long %, day-over-day change, index calls/puts, client positioning, extreme flags); quarterly shareholding changes with pledge red flags; bulk/block deals by symbol and client. flows.py works offline. Use when the user asks: "FII DII data this week", "are FIIs selling", "how long have FIIs been selling", "are DIIs absorbing FII selling", "FII long short ratio", "participant wise OI", "FII positioning in index futures", "who is buying this stock", "FII holding change", "promoter pledge", "bulk deals in X", "block deals", or wants flow context for a market or stock view.

Add to TypingMind

Tổng quan

Nhà phát hànhShubhamkumartrichy
Kho mãclaude-trading-skills-india
Tên kỹ năngfii-dii-flows
Sao
57
Bản fork
11
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Shubhamkumartrichy công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Fii Dii Flows trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/fii-dii-flows
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Shubhamkumartrichy/claude-trading-skills-india.git /tmp/claude-trading-skills-india
mkdir -p .claude/skills
cp -r /tmp/claude-trading-skills-india/skills/fii-dii-flows .claude/skills/fii-dii-flows
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Fii Dii Flows trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Fii Dii Flows ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Fii Dii Flows với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

FII/DII Flows (India)

market-pulse quotes last evening's FII/DII figures. This skill turns weeks of downloaded data into streaks, absorption, positioning extremes and holder changes, so a single day's number gets context.

Commands

bash
python3 scripts/flows.py cash --csv fii_dii.csv                      # flows, streaks, absorption
python3 scripts/flows.py cash --csv fii_dii.csv --nifty nifty.csv --json   # + NIFTY correlation
python3 scripts/flows.py participants --oi participant_oi/ --days 10  # folder of daily NSE files
python3 scripts/flows.py shareholding --csv shp.csv [--symbol HDFCBANK,ITC]
python3 scripts/flows.py deals --csv bulk.csv --csv block.csv [--symbol XYZ] [--client "fund"]

Common flags: --json (strict JSON), --as-of DATE, --date-format dmy|mdy. Tuning: --lookback 60, --top 5 (cash); --long-low 20 --long-high 70 --shift-pp 5 (participants); --min-change 1, --promoter-drop 0.5, --pledge-watch 10 --pledge-red 20 --pledge-severe 50 (shareholding); --kind bulk|block --from --to (deals). Errors exit 2 with one error: line.

Dates are never guessed. ISO, 30-Oct-2026, 30-OCT-2026, Oct 30, 2026 and 30-10-2026 (dashes = day first, NSE style) parse directly. Slash dates like 05/10/2026 work only if some row in the file proves the order (a day above 12); otherwise the script stops and asks for --date-format.

Getting the files

nseindia.com blocks scripted requests: download in a browser, or use WebSearch/WebFetch on sites that republish the figures (cite them). Never invent a missing day.

CommandSourceFormat handled
cashNSE → Reports → FII/FPI & DII trading activity (provisional, NSE+BSE+MSEI); Moneycontrol FII/DII table; NSDL FPI daily reportWide date,fii_buy,fii_sell,fii_net,dii_buy,dii_sell,dii_net; NSE rows Category,Date,Buy Value,Sell Value,Net Value (FII/FPI, DII); Moneycontrol two-row header (FII/DII × Gross Purchase/Gross Sales/Net); FPI-only files (NSDL: rename to date,fii_net). Net is derived from buy − sell if blank. Totals rows are skipped
participantsNSE → All Reports → Derivatives → "F&O – Participant wise Open Interest" (fao_participant_oi_DDMMYYYY.csv, one per day)Title row ("…as on Oct 30, 2026"), then Client Type header with Future Index/Stock Long/Short, Option Index/Stock Call/Put Long/Short, Total Long/Short; rows Client, DII, FII, Pro, TOTAL. Trailing spaces in headers and CRLF are fine. Date from the title, else the file name
shareholdingNSE/BSE shareholding-pattern filings (within 21 days of quarter end) or a Screener-style tablesymbol,quarter,promoter,fii,dii,mf,public,pledged (one or many stocks), or quarters across columns (Promoters, FIIs, DIIs, Public, No. of Shareholders rows). Quarters: Sep-2026, Q2FY27, Q2 2026-27, 2026-09-30; Q3 2026 is rejected (calendar or fiscal?)
dealsNSE → Market Data → Large Deals (bulk/block CSV); BSE bulk/block dealsDate,Symbol,Security Name,Client Name,Buy/Sell,Quantity Traded,Trade Price / Wght. Avg. Price; quantities like 4,00,000; BSE B/S/P sides. File name containing "block"/"bulk" tags the kind

Participant-OI layout checked against NSE's own Oct-2025/Oct-2026 files; bulk-deal header against NSE's archive bulk.csv. NSE's FII/DII CSV header text varies, so those columns match by keyword.

What it computes

  • cash: latest buy/sell/net, FII size vs the 20-session average absolute flow, 5/10/20-session, month-to-date and previous-month sums, current FII and DII streaks plus the longest runs in --lookback sessions, largest days, and absorption: DII net ÷ FII net outflow over the window, plus the same-day share of FII selling matched by DII buying. With --nifty: same-day and next-day correlation and the average NIFTY return on FII selling vs buying days.
  • participants: for FII, Client, Pro and DII: index-futures long, short, net, long % (long ÷ (long + short), which Indian commentary calls the "long-short ratio") and L/S; day-over-day change labelled long/short buildup, covering or unwinding; FII index calls and puts (long − short each); stock futures; percentile of FII long % when 20+ files are loaded.
  • shareholding: QoQ and YoY change in promoter, FII, DII, MF, public and pledge; flags for rising institutions (FII+DII ≥ +1 pp, with streak), FII→DII handover, promoter falling ≥ 0.5 pp, and pledges: watch ≥ 10%, red ≥ 20% (same line as fundamental-screening), severe ≥ 50% (SEBI makes promoters disclose reasons above 50% encumbrance). Pledge rising while promoter stake falls is flagged as possible invocation.
  • deals: buy, sell and net quantity and ₹ crore by symbol and client, average prices, repeat buyers and sellers (2+ days in one stock), and same-day round trips.

Reading it in India

  • FII selling vs SIP money. Since 2021, steady SIP inflows let DIIs absorb most FII selling, so FII outflows alone have rarely meant a crash. Absorption under ~50% for weeks is the warning, as is FII and DII selling together. Big single days often come from MSCI/FTSE rebalances, block deals or large IPO/QIP allotments; check the date before reading conviction into them.
  • Rupee link. FPI selling, a weaker rupee, higher US yields and a strong dollar usually travel together; a falling rupee raises FPIs' dollar hurdle. Check USD/INR with every long selling streak.
  • Provisional vs final. Exchange figures (same evening, secondary market only, by client codes) differ from NSDL/CDSL final FPI data (T+1, by custodians, includes primary-market investment). They can even differ in sign during heavy IPO/QIP months. Keep one source per file. NSE-only and combined NSE+BSE+MSEI series differ too.
  • FII long % thresholds. Defaults ≤ 20% (extreme short) and ≥ 70% (crowded long) are flags, not signals. FII long % fell to about 13% in Feb-2025 and 8–9% in Aug–Sep 2025, and the Mar-2025 short covering took it to about 66% (Business Standard, citing NSE data). NSE's own file showed 11.1% on 30-Oct-2026. Sub-20% readings can last for weeks, so use the percentile and day-over-day change for timing, and --long-low 15 for a stricter cut. A one-day swing of 5+ points is flagged.
  • Expiry noise. NSE index derivatives expire on Tuesday (monthly: last Tuesday; Thursday before Sep-2025). Changes spanning a monthly expiry are rollover, and option OI resets every weekly expiry, so read options week over week. Holiday shifts are not modelled.
  • Counterparties. Clients (mostly retail) are often long when FIIs are short. Read their long % as contrarian context, not a forecast. DII stock-futures shorts are mostly mutual-fund arbitrage hedges, not bearish bets. Contract counts mix NIFTY, BANKNIFTY and other indices, and lot-size revisions change counts, so compare long %, not raw contracts, across months.
  • Shareholding. MF is part of DII. A falling promoter % can be dilution (QIP, ESOPs, merger), not selling. Fewer shareholders while institutions add = stock moving from retail to institutions.
  • Deals. A bulk deal is one client trading over 0.5% of a company's shares in a day. Block deals run in a separate window. HFT and market-maker names that buy and sell the same day (common in SME stocks) are not conviction. Repeat buying by a known fund or promoter entity is.

How other skills use it

  • market-pulse: in the post-market wrap, run cash and participants on the downloaded files for the FII/DII row, the streak and the FII long % line, instead of quoting one day alone.
  • market-regime: a 5+ session FII selling streak with absorption under 50% adds weight to distribution days; heavy DII absorption explains flat days despite FII selling.
  • india-market-analyst: add one context line (FII 20-session net, DII absorption, FII long %) and the stock's shareholding/deal flags to any trade view.
  • fundamental-screening: use shareholding for the multi-quarter trend and pledge flags.
  • fno-options-analysis: use participants for the FII futures and options positioning gauge.

Caveats

Flows are reported after the fact: context, not timing. Same-day correlation mostly shows FIIs selling into falling markets and is unstable over a few months. Participant categories rest on broker-entered client codes; shareholding is up to three weeks stale; deal files only show trades above disclosure thresholds.

Output

FII/DII (provisional, [source], to [dd-Mon-yyyy]): latest FII [±₹x cr] / DII [±₹y cr];
20 sessions FII [±₹a cr], DII [±₹b cr], DII absorbed [c%]; FII [buying|selling] streak [n] ([±₹s cr])
F&O positioning ([date]): FII index futures [l%] long ([Δ] vs prior day, [activity]); clients [k%] long;
FII index calls net [..], puts net [..]; flags: [..]
Stock: promoter [p%] ([Δ] QoQ, pledge [q%]), FII [f%] ([Δ]), DII [d%] ([Δ]); deals: [repeat buyers/sellers]

Educational analysis, not investment advice. Data: [files + dates].

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Fii Dii Flows làm được gì?

Institutional money flow in Indian equities, from CSVs you download: FII/FPI and DII cash flows (₹ crore) with 5/10/20-session and month-to-date sums, streaks, how much FII selling DIIs absorbed, largest days and NIFTY correlation; NSE participant-wise F&O open interest (FII index-futures long %, day-over-day change, index calls/puts, client positioning, extreme flags); quarterly shareholding changes with pledge red flags; bulk/block deals by symbol and client. flows.py works offline. Use when the user asks: "FII DII data this week", "are FIIs selling", "how long have FIIs been selling", "a...

Vì sao nên dùng Fii Dii Flows trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Fii Dii Flows là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Fii Dii Flows trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/fii-dii-flows. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Fii Dii Flows?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Fii Dii Flows với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Fii Dii Flows với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Fii Dii Flows có miễn phí không?

Có. Kỹ năng này được Shubhamkumartrichy phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇