Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Aggregates portfolio holdings and normalizes order routing across Zerodha, Upstox and Angel One brokers.
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
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Unified broker bridge that aggregates portfolio data and normalizes order routing across multiple Indian brokers — Zerodha Kite, Upstox, and Angel One — into a single consistent interface.
# Requires env vars: KITE_API_KEY, KITE_ACCESS_TOKEN, UPSTOX_TOKEN
function Get-KiteHoldings {
$h = @{ "X-Kite-Version"="3"; "Authorization"="token $env:KITE_API_KEY:$env:KITE_ACCESS_TOKEN" }
(Invoke-RestMethod -Uri "https://api.kite.trade/portfolio/holdings" -Headers $h).data |
Select-Object @{N='symbol';E={$_.tradingsymbol}},
@{N='qty';E={$_.quantity}},
@{N='avg';E={$_.average_price}},
@{N='ltp';E={$_.last_price}},
@{N='broker';E={'Zerodha'}}
}
function Get-UpstoxHoldings {
$h = @{ "Authorization"="Bearer $env:UPSTOX_TOKEN"; "Accept"="application/json" }
(Invoke-RestMethod -Uri "https://api.upstox.com/v2/portfolio/long-term-holdings" -Headers $h).data |
Select-Object @{N='symbol';E={$_.tradingsymbol}},
@{N='qty';E={$_.quantity}},
@{N='avg';E={$_.average_price}},
@{N='ltp';E={$_.last_price}},
@{N='broker';E={'Upstox'}}
}
$all = @(Get-KiteHoldings) + @(Get-UpstoxHoldings)
$all | Sort-Object symbol | Format-Table -AutoSize
Next to this one in the catalogue, plus more from the same author.