GET /perps/positions
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/jupiter_portfolio/perps/positionsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOpen (and optionally closed) Jupiter Perps positions for a Solana wallet.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
walletAddress | query | str | required | Solana wallet address example: jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3 |
includeClosedPositions | query | bool | optional | Include closed positions default: Falseexample: False |
Response
type: object
data key: dataList
count key: count
pagination: offset
sample: {
"dataList": "array[0]",
"count": "int"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/jupiter_portfolio/perps/positions?walletAddress=jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3&includeClosedPositions=False"