Install any skill in seconds. Free to start, no credit card required.
Get Started Free →NSE corp actions: dividends, bonus, splits, rights, buybacks
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 41% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -14% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 88% | 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.
powershell$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
powershell$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
powershell$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
powershell$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
powershell$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.
Other measured skills in the registry, with their headline benchmark lift.