用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/taracodlabs/aiden --skill nse-fii-dii命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | nse-fii-dii |
| description | NSE FII/DII daily flows — gauge institutional Indian equity activity |
| category | india |
| version | 1.0.0 |
| tags | fii, dii, institutional, flow, nse, india, equity, market, foreign |
| license | Apache-2.0 |
Track FII (Foreign Institutional Investors) and DII (Domestic Institutional Investors) daily net buying and selling activity on NSE — a leading indicator of market sentiment.
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$resp = Invoke-RestMethod `
-Uri "https://www.nseindia.com/api/fiidiiTradeReact" `
-Headers $headers -WebSession $nse
$resp | Select-Object date,
@{N='FII_Buy';E={$_.buyValue}}, @{N='FII_Sell';E={$_.sellValue}},
@{N='FII_Net';E={$_.netValue}} |
Select-Object -First 1
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$resp = Invoke-RestMethod `
-Uri "https://www.nseindia.com/api/fiidiiTradeReact" `
-Headers $headers -WebSession $nse
$resp | Select-Object -First 10 | ForEach-Object {
[PSCustomObject]@{
Date = $_.date
FII_Net = [math]::Round($_.fiinet, 2)
DII_Net = [math]::Round($_.diinet, 2)
FII_Buy = [math]::Round($_.fiibuy, 2)
FII_Sell = [math]::Round($_.fiisell, 2)
DII_Buy = [math]::Round($_.diibuy, 2)
DII_Sell = [math]::Round($_.diisell, 2)
}
} | Format-Table -AutoSize
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$resp = Invoke-RestMethod `
-Uri "https://www.nseindia.com/api/fiidiiTradeReact" `
-Headers $headers -WebSession $nse
$n = 20
$cumFII = ($resp | Select-Object -First $n | ForEach-Object { $_.fiinet } | Measure-Object -Sum).Sum
$cumDII = ($resp | Select-Object -First $n | ForEach-Object { $_.diinet } | Measure-Object -Sum).Sum
Write-Host "Last $n days cumulative:"
Write-Host "FII Net: ₹$([math]::Round($cumFII,2)) Cr"
Write-Host "DII Net: ₹$([math]::Round($cumDII,2)) Cr"
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$resp = Invoke-RestMethod -Uri "https://www.nseindia.com/api/fiidiiTradeReact" -Headers $headers -WebSession $nse
$streak = 0; $direction = ""
foreach ($day in $resp) {
if ($day.fiinet -gt 0) { $d = "BUY" } else { $d = "SELL" }
if ($d -eq $direction) { $streak++ } else { $direction = $d; $streak = 1 }
break
}
Write-Host "FII currently on $streak-day $direction streak"
"Are FIIs buying or selling this week?" → Fetch last 5 days of FII data, sum net values, display buying/selling trend.
"What was FII activity over the past month?" → Fetch 20 records from the API and calculate cumulative FII net flow.
"Show FII vs DII activity for the last 10 sessions" → Tabulate both FII_Net and DII_Net for the 10 most recent trading days.
https://www.nseindia.com first