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 free

Open (and optionally closed) Jupiter Perps positions for a Solana wallet.

Parameters

nameintypedescription
walletAddressquerystrrequiredSolana wallet address
example: jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3
includeClosedPositionsquerybooloptionalInclude closed positions
default: False
example: 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"