cURL
curl --request GET \
--url https://api.jup.ag/prediction/v1/history \
--header 'x-api-key: <api-key>'{
"data": [
{
"id": 123,
"signature": "<string>",
"slot": "<string>",
"timestamp": 123,
"orderPubkey": "<string>",
"positionPubkey": "<string>",
"marketId": "<string>",
"ownerPubkey": "<string>",
"keeperPubkey": "<string>",
"externalOrderId": "<string>",
"orderId": "<string>",
"isBuy": true,
"isYes": true,
"contracts": "<string>",
"filledContracts": "<string>",
"contractsSettled": "<string>",
"maxFillPriceUsd": "<string>",
"avgFillPriceUsd": "<string>",
"maxBuyPriceUsd": "<string>",
"minSellPriceUsd": "<string>",
"depositAmountUsd": "<string>",
"totalCostUsd": "<string>",
"feeUsd": "<string>",
"grossProceedsUsd": "<string>",
"netProceedsUsd": "<string>",
"transferAmountToken": "<string>",
"realizedPnl": "<string>",
"realizedPnlBeforeFees": "<string>",
"payoutAmountUsd": "<string>",
"eventId": "<string>",
"marketMetadata": {
"marketId": "<string>",
"title": "<string>",
"status": "<string>",
"result": "<string>",
"closeTime": 123,
"openTime": 123,
"isTeamMarket": true,
"rulesPrimary": "<string>",
"rulesSecondary": "<string>",
"eventId": "<string>"
},
"eventMetadata": {
"eventId": "<string>",
"title": "<string>",
"subtitle": "<string>",
"slug": "<string>",
"series": "<string>",
"closeTime": "<string>",
"imageUrl": "<string>",
"isLive": true
}
}
],
"pagination": {
"start": 1,
"end": 1,
"total": 1,
"hasNext": true
}
}History & Data
Get History
Get trading history and event records for an account
GET
/
history
cURL
curl --request GET \
--url https://api.jup.ag/prediction/v1/history \
--header 'x-api-key: <api-key>'{
"data": [
{
"id": 123,
"signature": "<string>",
"slot": "<string>",
"timestamp": 123,
"orderPubkey": "<string>",
"positionPubkey": "<string>",
"marketId": "<string>",
"ownerPubkey": "<string>",
"keeperPubkey": "<string>",
"externalOrderId": "<string>",
"orderId": "<string>",
"isBuy": true,
"isYes": true,
"contracts": "<string>",
"filledContracts": "<string>",
"contractsSettled": "<string>",
"maxFillPriceUsd": "<string>",
"avgFillPriceUsd": "<string>",
"maxBuyPriceUsd": "<string>",
"minSellPriceUsd": "<string>",
"depositAmountUsd": "<string>",
"totalCostUsd": "<string>",
"feeUsd": "<string>",
"grossProceedsUsd": "<string>",
"netProceedsUsd": "<string>",
"transferAmountToken": "<string>",
"realizedPnl": "<string>",
"realizedPnlBeforeFees": "<string>",
"payoutAmountUsd": "<string>",
"eventId": "<string>",
"marketMetadata": {
"marketId": "<string>",
"title": "<string>",
"status": "<string>",
"result": "<string>",
"closeTime": 123,
"openTime": 123,
"isTeamMarket": true,
"rulesPrimary": "<string>",
"rulesSecondary": "<string>",
"eventId": "<string>"
},
"eventMetadata": {
"eventId": "<string>",
"title": "<string>",
"subtitle": "<string>",
"slug": "<string>",
"series": "<string>",
"closeTime": "<string>",
"imageUrl": "<string>",
"isLive": true
}
}
],
"pagination": {
"start": 1,
"end": 1,
"total": 1,
"hasNext": true
}
}Documentation Index
Fetch the complete documentation index at: https://dev.jup.ag/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Get API key via https://developers.jup.ag/portal
Query Parameters
Required range:
x >= 0Required range:
x >= 0History owner public key
Minimum string length:
32History event ID
Required range:
x >= 1Filter by position public key
Minimum string length:
32Was this page helpful?
⌘I
