Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scans the NSE equity market for top gainers and losers, volume spikes, and 52-week highs or lows.
48% 96%+48 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 11 of 23 without it.
When processing response data from the top gainers endpoint, which four object fields should be projected into the final output list?
Selects symbol, ltp, netPrice, and pChange fields
3 of 3 safety checks passed
Scan the NSE equity market for top movers, volume spikes, and price extremes using NSE's publicly accessible JSON APIs — no API key required.
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
$session = Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers
$resp = Invoke-RestMethod -Uri "https://www.nseindia.com/api/live-analysis-variations?index=gainers" `
-Headers $headers -WebSession $nse
$resp.NIFTY.data | Sort-Object pChange -Descending | Select-Object -First 10 |
Select-Object symbol, ltp, netPrice, pChange
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
$session = Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers
$resp = Invoke-RestMethod -Uri "https://www.nseindia.com/api/live-analysis-variations?index=losers" `
-Headers $headers -WebSession $nse
$resp.NIFTY.data | Sort-Object pChange | Select-Object -First 10 |
Select-Object symbol, ltp, netPrice, pChange
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
$session = Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers
$resp = Invoke-RestMethod -Uri "https://www.nseindia.com/api/live-analysis-variations?index=high52" `
-Headers $headers -WebSession $nse
Next to this one in the catalogue, plus more from the same author.