GET /data/pnl-positions
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/jupiter_portfolio/data/pnl-positionsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeCached per-wallet scan: tokenPositions list, cache timestamp and blacklist flag for one wallet.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
address | query | str | required | Solana wallet address (query parameter) example: 5tzFkiKscXHK5ZXCGbXRExdE8ooZjJPTp8ivbtQqPgUM |
filter | query | str | required | Position filter for /data/pnl-positions — REQUIRED upstream. An omitted filter is rejected with 400 {"Param: '', Message: 'Expected union value', Value: '[object Object]'"} (~0.4 s edge rejection); 'activePosition' is accepted. OpenAPI Hub auto-fills this default when a caller omits the param. default: activePositionexample: activePosition |
Response
type: object
pagination: none
sample: {
"5tzFkiKscXHK5ZXCGbXRExdE8ooZjJPTp8ivbtQqPgUM": "object"
}
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/data/pnl-positions?address=5tzFkiKscXHK5ZXCGbXRExdE8ooZjJPTp8ivbtQqPgUM&filter=activePosition"