Skip to main content
GET
/
v2
/
polymarket
/
wallet
/
positions
/
{wallet}
Get Wallet Positions
curl --request GET \
  --url https://api.predexon.com/v2/polymarket/wallet/positions/{wallet} \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.predexon.com/v2/polymarket/wallet/positions/{wallet}"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.predexon.com/v2/polymarket/wallet/positions/{wallet}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.predexon.com/v2/polymarket/wallet/positions/{wallet}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.predexon.com/v2/polymarket/wallet/positions/{wallet}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.predexon.com/v2/polymarket/wallet/positions/{wallet}")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.predexon.com/v2/polymarket/wallet/positions/{wallet}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "wallet_address": "<string>",
  "positions": [
    {
      "market": {
        "condition_id": "<string>",
        "market_slug": "<string>",
        "title": "<string>",
        "side_label": "<string>",
        "token_id": "<string>"
      },
      "position": {
        "shares": 123,
        "total_shares_bought": 123,
        "avg_entry_price": 123,
        "total_cost_usd": 123,
        "total_bought_usd": 0,
        "net_fees_usd": 0
      },
      "current": {
        "price": 123,
        "value_usd": 123
      },
      "pnl": {
        "unrealized_usd": 123,
        "unrealized_pct": 123,
        "realized_usd": 123
      }
    }
  ],
  "summary": {
    "total_positions": 123,
    "total_value_usd": 123,
    "total_cost_usd": 123,
    "total_unrealized_pnl_usd": 123,
    "total_realized_pnl_usd": 123,
    "win_rate": 123,
    "winning_positions": 123,
    "losing_positions": 123,
    "fees_paid": 123,
    "fees_refunded": 123,
    "net_fees": 123
  },
  "pagination": {
    "limit": 123,
    "count": 123,
    "has_more": true,
    "pagination_key": "<string>"
  }
}
{
"error": "<string>",
"message": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
{
"error": "<string>",
"message": "<string>"
}
Fetch positions for a Polymarket wallet with cost basis, current value, and P&L.
Rolling total PnL accuracy timeline - Total PnL (realized + unrealized - net fees) uses rolling windows that need time to accumulate full data:
  • All-time total PnL: accurate immediately (February 10, 2026)
  • 1-day rolling total PnL: fully accurate starting February 11, 2026
  • 7-day rolling total PnL: fully accurate starting February 17, 2026
  • 30-day rolling total PnL: fully accurate starting March 12, 2026
ConstraintValue
limit1–200 (default 100)
include_closedfalse by default - only open (non-zero-balance) positions are returned. Pass include_closed=true to include closed/zero-balance positions.

Authorizations

x-api-key
string
header
required

Path Parameters

wallet
string
required

Wallet address to fetch positions for

Query Parameters

include_closed
boolean
default:false

Include zero-balance (closed) positions

min_shares
number
default:0

Minimum number of shares to include

Required range: x >= 0
market_slug
string | null

Filter by market slug

condition_id
string | null

Filter to a specific market by condition ID

sort_by
enum<string>
default:value

Field to sort by

Available options:
value,
unrealized_pnl,
realized_pnl,
cost,
avg_price,
current_price,
entry_date
order
enum<string>
default:desc

Sort order: asc or desc

Available options:
asc,
desc
limit
integer
default:100

Maximum number of positions to return (1-200)

Required range: 1 <= x <= 200
pagination_key
string | null

Cursor for pagination

Response

Successful Response

Wallet positions endpoint response.

wallet_address
string
required
positions
Position · object[]
required
summary
PositionsSummary · object
required

Summary of all positions.

pagination
CursorPagination · object
required

Cursor-based pagination for endpoints that don't support offset.