Skip to main content
GET
/
profiles
/
{ownerPubkey}
/
pnl-history
cURL
curl --request GET \
  --url https://api.jup.ag/prediction/v1/profiles/{ownerPubkey}/pnl-history \
  --header 'x-api-key: <api-key>'
{
  "ownerPubkey": "<string>",
  "history": [
    {
      "timestamp": 123,
      "realizedPnlUsd": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

Path Parameters

ownerPubkey
string
required

Query Parameters

interval
enum<string>
default:1w
Available options:
24h,
1w,
1m
count
integer
default:10
Required range: 0 < x <= 1000

Response

200 - application/json

PnL history for charting

ownerPubkey
string
required
history
object[]
required