curl --request GET \
--url https://api.jup.ag/prediction/v1/orders \
--header 'x-api-key: <api-key>'{
"data": [
{
"pubkey": "<string>",
"owner": "<string>",
"ownerPubkey": "<string>",
"market": "<string>",
"marketId": "<string>",
"marketIdHash": "<string>",
"eventId": "<string>",
"position": "<string>",
"status": "pending",
"isYes": true,
"isBuy": true,
"createdAt": 123,
"updatedAt": 123,
"contracts": "<string>",
"maxFillPriceUsd": "<string>",
"maxBuyPriceUsd": "<string>",
"minSellPriceUsd": "<string>",
"filledAt": 123,
"filledContracts": "<string>",
"avgFillPriceUsd": "<string>",
"settled": true,
"orderId": "<string>",
"sizeUsd": "<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>"
},
"externalOrderId": "<string>",
"bump": 1
}
],
"pagination": {
"start": 1,
"end": 1,
"total": 1,
"hasNext": true
}
}Get a list of orders with optional filtering by owner or market
curl --request GET \
--url https://api.jup.ag/prediction/v1/orders \
--header 'x-api-key: <api-key>'{
"data": [
{
"pubkey": "<string>",
"owner": "<string>",
"ownerPubkey": "<string>",
"market": "<string>",
"marketId": "<string>",
"marketIdHash": "<string>",
"eventId": "<string>",
"position": "<string>",
"status": "pending",
"isYes": true,
"isBuy": true,
"createdAt": 123,
"updatedAt": 123,
"contracts": "<string>",
"maxFillPriceUsd": "<string>",
"maxBuyPriceUsd": "<string>",
"minSellPriceUsd": "<string>",
"filledAt": 123,
"filledContracts": "<string>",
"avgFillPriceUsd": "<string>",
"settled": true,
"orderId": "<string>",
"sizeUsd": "<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>"
},
"externalOrderId": "<string>",
"bump": 1
}
],
"pagination": {
"start": 1,
"end": 1,
"total": 1,
"hasNext": true
}
}Get API key via https://portal.jup.ag
x >= 0x >= 01Order owner public key (deprecated alias; use ownerPubkey)
1Was this page helpful?