Jupiter — Prediction API — Get position
One position by its account public key: side, contracts held (`contractsMicro` and `contractsDecimal`), cost basis, mark price and unrealised P&L in micro USD. Latest request and response verified through OpenAny testnet.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Jupiter — Prediction API — Get position
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
avgPriceUsdstringbumpintegerclaimablebooleanclaimableAtnullclaimedbooleanclaimedUsdstringcontractsstringcontractsDecimalstringcontractsMicrostringeventIdstringeventMetadataobjectbeginAtstringcategorystringcloseConditionstringcloseTimeintegereventIdstringimageUrlstringisActivebooleanisLivebooleansubcategorystringsubtitlestringtagsstring[]titlestring
feesPaidUsdstringintegratorFeeUsdstringisYesbooleanmarkPriceUsdstringmarketstringmarketIdstringmarketIdHashstringmarketMetadataobjectcloseTimeintegerdescriptionstringeventIdstringgameNumbernullisTeamMarketbooleanmarketIdstringmarketOptionsobject[]buyYesbooleanlabelstring
openTimeintegerperiodNumbernullperiodTypenullproviderstringproviderSportsLinenullresultnullsportsLinenullsportsMarketTypestringstatusstringsubtitlestringteamobjectabbreviationstringcolorstringimageUrlstringnamestring
titlestring
maxSlippageBpsintegeropenOrdersintegeropenedAtintegerownerstringownerPubkeystringpayoutUsdstringpnlUsdstringpnlUsdAfterFeesstringpnlUsdAfterFeesPercentnumberpnlUsdPercentnumberpubkeystringrealizedPnlUsdintegersellPriceUsdstringsettlementDateintegersizeUsdstringsourcestringtotalCostUsdstringupdatedAtintegervalueUsdstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
avgPriceUsd?: string;
bump?: number;
claimable?: boolean;
claimableAt?: null;
claimed?: boolean;
claimedUsd?: string;
contracts?: string;
contractsDecimal?: string;
contractsMicro?: string;
eventId?: string;
eventMetadata?: {
beginAt?: string;
category?: string;
closeCondition?: string;
closeTime?: number;
eventId?: string;
imageUrl?: string;
isActive?: boolean;
isLive?: boolean;
subcategory?: string;
subtitle?: string;
tags?: Array<string>;
title?: string;
};
feesPaidUsd?: string;
integratorFeeUsd?: string;
isYes?: boolean;
markPriceUsd?: string;
market?: string;
marketId?: string;
marketIdHash?: string;
marketMetadata?: {
closeTime?: number;
description?: string;
eventId?: string;
gameNumber?: null;
isTeamMarket?: boolean;
marketId?: string;
marketOptions?: Array<{
buyYes?: boolean;
label?: string;
}>;
openTime?: number;
periodNumber?: null;
periodType?: null;
provider?: string;
providerSportsLine?: null;
result?: null;
sportsLine?: null;
sportsMarketType?: string;
status?: string;
subtitle?: string;
team?: {
abbreviation?: string;
color?: string;
imageUrl?: string;
name?: string;
};
title?: string;
};
maxSlippageBps?: number;
openOrders?: number;
openedAt?: number;
owner?: string;
ownerPubkey?: string;
payoutUsd?: string;
pnlUsd?: string;
pnlUsdAfterFees?: string;
pnlUsdAfterFeesPercent?: number;
pnlUsdPercent?: number;
pubkey?: string;
realizedPnlUsd?: number;
sellPriceUsd?: string;
settlementDate?: number;
sizeUsd?: string;
source?: string;
totalCostUsd?: string;
updatedAt?: number;
valueUsd?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
jupiterCurrent Jupiter — Prediction API — Get position · GET · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 2. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/{positionPubkey}- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
positionPubkey | URL path parameterspath | string | Yes | Position account public key minLength: 1 |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"avgPriceUsd": "329999",
"bump": 252,
"claimable": false,
"claimableAt": null,
"claimed": false,
"claimedUsd": "0",
"contracts": "102",
"contractsDecimal": "102.93",
"contractsMicro": "102930000",
"eventId": "POLY-1272606",
"eventMetadata": {
"beginAt": "1793336700",
"category": "sports",
"closeCondition": "",
"closeTime": 1793930400,
"eventId": "POLY-1272606",
"imageUrl": "https://polymarket-upload.s3.us-east-2.amazonaws.com/wta-logo-41f331bdf1.png",
"isActive": true,
"isLive": true,
"subcategory": "wta",
"subtitle": "",
"tags": [
"tennis",
"sports",
"games",
"wta"
],
"title": "Guangzhou Open: Paula Badosa vs Harriet Dart"
},
"feesPaidUsd": "1817380",
"integratorFeeUsd": "0",
"isYes": true,
"markPriceUsd": "300000",
"market": "HjNUPnizcAKb8JZ3RWBTT6o8aHVjtHHoxrFMfjNZthij",
"marketId": "POLY-6347272-1",
"marketIdHash": "6863d587602a48eb4fceb1a04f56bb30",
"marketMetadata": {
"closeTime": 1793930400,
"description": "Harriet Dart",
"eventId": "POLY-1272606",
"gameNumber": null,
"isTeamMarket": true,
"marketId": "POLY-6347272-1",
"marketOptions": [
{
"buyYes": true,
"label": "Harriet Dart"
}
],
"openTime": 1793204062,
"periodNumber": null,
"periodType": null,
"provider": "polymarket",
"providerSportsLine": null,
"result": null,
"sportsLine": null,
"sportsMarketType": "moneyline",
"status": "open",
"subtitle": "Harriet Dart",
"team": {
"abbreviation": "dart",
"color": "#a22020",
"imageUrl": "https://polymarket-upload.s3.us-east-2.amazonaws.com/country-flags/gbr.png",
"name": "Harriet Dart"
},
"title": "Harriet Dart"
},
"maxSlippageBps": 2500,
"openOrders": 0,
"openedAt": 1793341123,
"owner": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6",
"ownerPubkey": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6",
"payoutUsd": "102930000",
"pnlUsd": "-3087899",
"pnlUsdAfterFees": "-4905279",
"pnlUsdAfterFeesPercent": -13.7,
"pnlUsdPercent": -9.09,
"pubkey": "5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf",
"realizedPnlUsd": 0,
"sellPriceUsd": "300000",
"settlementDate": 1793930400,
"sizeUsd": "33966899",
"source": "program",
"totalCostUsd": "33966899",
"updatedAt": 1793341123,
"valueUsd": "30879000"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Jupiter — Prediction API — Get position
One position by its account public key: side, contracts held (`contractsMicro` and `contractsDecimal`), cost basis, mark price and unrealised P&L in micro USD. Latest request and response verified through OpenAny testnet.
## Available implementations
jupiter · Jupiter — Prediction API — Get position: https://openany.si/markets/apis/capabilities/jupiter-prediction-api-get-position?offering=1e900ed2-20f8-4acc-879a-560bfa53def7 · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/1e900ed2-20f8-4acc-879a-560bfa53def7
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/{positionPubkey}
Price: $0 / call
Provider: jupiter
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Jupiter — Prediction API — Get position",
"endpoint": "https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/{positionPubkey}",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Position account public key",
"location": "path",
"min_length": 1,
"name": "positionPubkey",
"nullable": false,
"required": true,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": null,
"headers": {},
"path": {
"positionPubkey": "5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf"
},
"query": {}
},
"response_body": {
"avgPriceUsd": "329999",
"bump": 252,
"claimable": false,
"claimableAt": null,
"claimed": false,
"claimedUsd": "0",
"contracts": "102",
"contractsDecimal": "102.93",
"contractsMicro": "102930000",
"eventId": "POLY-1272606",
"eventMetadata": {
"beginAt": "1793336700",
"category": "sports",
"closeCondition": "",
"closeTime": 1793930400,
"eventId": "POLY-1272606",
"imageUrl": "https://polymarket-upload.s3.us-east-2.amazonaws.com/wta-logo-41f331bdf1.png",
"isActive": true,
"isLive": true,
"subcategory": "wta",
"subtitle": "",
"tags": [
"tennis",
"sports",
"games",
"wta"
],
"title": "Guangzhou Open: Paula Badosa vs Harriet Dart"
},
"feesPaidUsd": "1817380",
"integratorFeeUsd": "0",
"isYes": true,
"markPriceUsd": "300000",
"market": "HjNUPnizcAKb8JZ3RWBTT6o8aHVjtHHoxrFMfjNZthij",
"marketId": "POLY-6347272-1",
"marketIdHash": "6863d587602a48eb4fceb1a04f56bb30",
"marketMetadata": {
"closeTime": 1793930400,
"description": "Harriet Dart",
"eventId": "POLY-1272606",
"gameNumber": null,
"isTeamMarket": true,
"marketId": "POLY-6347272-1",
"marketOptions": [
{
"buyYes": true,
"label": "Harriet Dart"
}
],
"openTime": 1793204062,
"periodNumber": null,
"periodType": null,
"provider": "polymarket",
"providerSportsLine": null,
"result": null,
"sportsLine": null,
"sportsMarketType": "moneyline",
"status": "open",
"subtitle": "Harriet Dart",
"team": {
"abbreviation": "dart",
"color": "#a22020",
"imageUrl": "https://polymarket-upload.s3.us-east-2.amazonaws.com/country-flags/gbr.png",
"name": "Harriet Dart"
},
"title": "Harriet Dart"
},
"maxSlippageBps": 2500,
"openOrders": 0,
"openedAt": 1793341123,
"owner": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6",
"ownerPubkey": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6",
"payoutUsd": "102930000",
"pnlUsd": "-3087899",
"pnlUsdAfterFees": "-4905279",
"pnlUsdAfterFeesPercent": -13.7,
"pnlUsdPercent": -9.09,
"pubkey": "5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf",
"realizedPnlUsd": 0,
"sellPriceUsd": "300000",
"settlementDate": 1793930400,
"sizeUsd": "33966899",
"source": "program",
"totalCostUsd": "33966899",
"updatedAt": 1793341123,
"valueUsd": "30879000"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
positionPubkey- Position account public key
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "avgPriceUsd": "329999", "bump": 252, "claimable": false, "claimableAt": null, "claimed": false, "claimedUsd": "0", "contracts": "102", "contractsDecimal": "102.93", "contractsMicro": "102930000", "eventId": "POLY-1272606", "eventMetadata": { "beginAt": "1793336700", "category": "sports", "closeCondition": "", "closeTime": 1793930400, "eventId": "POLY-1272606", "imageUrl": "https://polymarket-upload.s3.us-east-2.amazonaws.com/wta-logo-41f331bdf1.png", "isActive": true, "isLive": true, "subcategory": "wta", "subtitle": "", "tags": [ "tennis", "sports", "games", "wta" ], "title": "Guangzhou Open: Paula Badosa vs Harriet Dart" }, "feesPaidUsd": "1817380", "integratorFeeUsd": "0", "isYes": true, "markPriceUsd": "300000", "market": "HjNUPnizcAKb8JZ3RWBTT6o8aHVjtHHoxrFMfjNZthij", "marketId": "POLY-6347272-1", "marketIdHash": "6863d587602a48eb4fceb1a04f56bb30", "marketMetadata": { "closeTime": 1793930400, "description": "Harriet Dart", "eventId": "POLY-1272606", "gameNumber": null, "isTeamMarket": true, "marketId": "POLY-6347272-1", "marketOptions": [ { "buyYes": true, "label": "Harriet Dart" } ], "openTime": 1793204062, "periodNumber": null, "periodType": null, "provider": "polymarket", "providerSportsLine": null, "result": null, "sportsLine": null, "sportsMarketType": "moneyline", "status": "open", "subtitle": "Harriet Dart", "team": { "abbreviation": "dart", "color": "#a22020", "imageUrl": "https://polymarket-upload.s3.us-east-2.amazonaws.com/country-flags/gbr.png", "name": "Harriet Dart" }, "title": "Harriet Dart" }, "maxSlippageBps": 2500, "openOrders": 0, "openedAt": 1793341123, "owner": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6", "ownerPubkey": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6", "payoutUsd": "102930000", "pnlUsd": "-3087899", "pnlUsdAfterFees": "-4905279", "pnlUsdAfterFeesPercent": -13.7, "pnlUsdPercent": -9.09, "pubkey": "5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf", "realizedPnlUsd": 0, "sellPriceUsd": "300000", "settlementDate": 1793930400, "sizeUsd": "33966899", "source": "program", "totalCostUsd": "33966899", "updatedAt": 1793341123, "valueUsd": "30879000" }