GET /data/pnl-token-breakdown
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/jupiter_portfolio/data/pnl-token-breakdownCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePer-token PnL split for a wallet in one timeframe bucket.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
address | query | str | required | Solana wallet address (query parameter) example: 5tzFkiKscXHK5ZXCGbXRExdE8ooZjJPTp8ivbtQqPgUM |
timeFrame | query | strall-time | 1d | required | PnL bucket for /data/pnl-token-breakdown. Values outside the UI union are rejected with 400 'Expected union value' (1_DAY was rejected); 'all-time' / '1d' are accepted. example: 1d |
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-token-breakdown?address=5tzFkiKscXHK5ZXCGbXRExdE8ooZjJPTp8ivbtQqPgUM&timeFrame=1d"