一键导入
nse-corporate-actions
NSE corp actions: dividends, bonus, splits, rights, buybacks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
NSE corp actions: dividends, bonus, splits, rights, buybacks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Search and download arXiv papers (no API key needed)
Delegate coding and file edits to Anthropic Claude Code CLI
Read/write Windows clipboard text, HTML, images, history (PowerShell)
Running scripts and code on Windows
Delegate coding tasks to OpenAI Codex CLI
Windows Defender: scans, threat history, signatures (PowerShell)
| name | nse-corporate-actions |
| description | NSE corp actions: dividends, bonus, splits, rights, buybacks |
| category | india |
| version | 1.0.0 |
| tags | nse, corporate-actions, dividend, bonus, split, rights, buyback, india, equity |
| license | Apache-2.0 |
Fetch upcoming and recent corporate actions for NSE-listed stocks — dividends, bonus issues, stock splits, rights issues, and buybacks — using NSE's public API.
$symbol = "INFY"
$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/corporates-corporateActions?index=equities&symbol=$symbol" `
-Headers $headers -WebSession $nse
$resp | Select-Object subject, exDate, recordDate, bcStartDate, bcEndDate, series |
Sort-Object exDate -Descending | Select-Object -First 10
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$today = (Get-Date).ToString("dd-MM-yyyy")
$resp = Invoke-RestMethod `
-Uri "https://www.nseindia.com/api/corporates-corporateActions?index=equities&from_date=$today&category=dividend" `
-Headers $headers -WebSession $nse
$resp | Select-Object symbol, subject, exDate, series |
Sort-Object exDate | Select-Object -First 20
$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/corporates-corporateActions?index=equities&category=bonus" `
-Headers $headers -WebSession $nse
$resp | Select-Object symbol, subject, exDate, bcStartDate | Sort-Object exDate
$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/corporates-corporateActions?index=equities&category=splits" `
-Headers $headers -WebSession $nse
$resp | Select-Object symbol, subject, exDate | Sort-Object exDate
$symbol = "TCS"
$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/corporates-corporateActions?index=equities&symbol=$symbol" `
-Headers $headers -WebSession $nse
$latest = $resp | Where-Object { $_.subject -match "dividend" } |
Sort-Object exDate -Descending | Select-Object -First 1
if ($latest) {
$exDate = [DateTime]::ParseExact($latest.exDate, "dd-MMM-yyyy", $null)
$status = if ($exDate -gt (Get-Date)) { "UPCOMING (buy before $($latest.exDate))" } else { "PAST (ex-date was $($latest.exDate))" }
Write-Host "$symbol dividend: $($latest.subject) | Ex-date: $status"
}
"When is TCS next dividend and what is the ex-date?"
→ Fetch corporate actions for TCS filtered by dividend, sort by exDate, display the most recent upcoming entry.
"Are there any bonus issues this month?" → Fetch bonus category from corporate actions API, filter by exDate within current month.
"Has Wipro announced a stock split?" → Fetch splits category for WIPRO and check if any entries exist.