Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Fetches NSE-listed stock corporate actions such as dividends, bonus issues, splits, rights issues and buybacks via NSE's public API.
55% 86%+32 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 12 of 22 without it.
3 of 3 safety checks passed
Not used yet
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
Next to this one in the catalogue, plus more from the same author.