curl --request GET \
--url https://api.jup.ag/prediction/v1/positions \
--header 'x-api-key: <api-key>'{
"data": [
{
"pubkey": "<string>",
"owner": "<string>",
"ownerPubkey": "<string>",
"market": "<string>",
"marketId": "<string>",
"marketIdHash": "<string>",
"isYes": true,
"contracts": "<string>",
"totalCostUsd": "<string>",
"sizeUsd": "<string>",
"valueUsd": "<string>",
"avgPriceUsd": "<string>",
"markPriceUsd": "<string>",
"sellPriceUsd": "<string>",
"pnlUsd": "<string>",
"pnlUsdPercent": 123,
"pnlUsdAfterFees": "<string>",
"pnlUsdAfterFeesPercent": 123,
"openOrders": 1,
"feesPaidUsd": "<string>",
"realizedPnlUsd": 123,
"claimed": true,
"claimedUsd": "<string>",
"openedAt": 123,
"updatedAt": 123,
"claimableAt": 123,
"payoutUsd": "<string>",
"bump": 1,
"eventId": "<string>",
"eventMetadata": {
"eventId": "<string>",
"title": "<string>",
"subtitle": "<string>",
"imageUrl": "<string>",
"isLive": true
},
"marketMetadata": {
"marketId": "<string>",
"isTradable": true,
"title": "<string>",
"subtitle": "<string>",
"description": "<string>",
"status": "<string>",
"result": "<string>",
"closeTime": 123,
"openTime": 123,
"settlementTime": 123,
"rulesPrimary": "<string>",
"rulesSecondary": "<string>",
"eventId": "<string>"
},
"settlementDate": 123,
"claimable": true
}
],
"pagination": {
"start": 1,
"end": 1,
"total": 1,
"hasNext": true
}
}Get a list of positions with optional filtering
curl --request GET \
--url https://api.jup.ag/prediction/v1/positions \
--header 'x-api-key: <api-key>'{
"data": [
{
"pubkey": "<string>",
"owner": "<string>",
"ownerPubkey": "<string>",
"market": "<string>",
"marketId": "<string>",
"marketIdHash": "<string>",
"isYes": true,
"contracts": "<string>",
"totalCostUsd": "<string>",
"sizeUsd": "<string>",
"valueUsd": "<string>",
"avgPriceUsd": "<string>",
"markPriceUsd": "<string>",
"sellPriceUsd": "<string>",
"pnlUsd": "<string>",
"pnlUsdPercent": 123,
"pnlUsdAfterFees": "<string>",
"pnlUsdAfterFeesPercent": 123,
"openOrders": 1,
"feesPaidUsd": "<string>",
"realizedPnlUsd": 123,
"claimed": true,
"claimedUsd": "<string>",
"openedAt": 123,
"updatedAt": 123,
"claimableAt": 123,
"payoutUsd": "<string>",
"bump": 1,
"eventId": "<string>",
"eventMetadata": {
"eventId": "<string>",
"title": "<string>",
"subtitle": "<string>",
"imageUrl": "<string>",
"isLive": true
},
"marketMetadata": {
"marketId": "<string>",
"isTradable": true,
"title": "<string>",
"subtitle": "<string>",
"description": "<string>",
"status": "<string>",
"result": "<string>",
"closeTime": 123,
"openTime": 123,
"settlementTime": 123,
"rulesPrimary": "<string>",
"rulesSecondary": "<string>",
"eventId": "<string>"
},
"settlementDate": 123,
"claimable": true
}
],
"pagination": {
"start": 1,
"end": 1,
"total": 1,
"hasNext": true
}
}Get API key via https://portal.jup.ag
x >= 0x >= 0Position owner public key
111Filter by position side (true = YES, false = NO)
true, false Was this page helpful?