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

url = "https://api.predexon.com/v2/polymarket/wallet/pnl/{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/pnl/{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/pnl/{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/pnl/{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/pnl/{wallet}")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.predexon.com/v2/polymarket/wallet/pnl/{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
{
  "start_time": 123,
  "end_time": 123,
  "wallet_address": "<string>",
  "pnl_over_time": [
    {
      "timestamp": 123,
      "pnl_to_date": 123
    }
  ],
  "realized_pnl": 123,
  "unrealized_pnl": 123,
  "fees_paid": 123,
  "fees_refunded": 123,
  "total_pnl": 123
}
{
"error": "<string>",
"message": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
{
"error": "<string>",
"message": "<string>"
}
Returns both a summary (realized, unrealized, fees) and a time series of cumulative realized P&L. Summary fields (current snapshot):
  • realized_pnl - Total realized P&L from sells and redemptions
  • unrealized_pnl - Unrealized P&L computed live from open positions
  • total_pnl - realized_pnl + unrealized_pnl
  • fees_paid / fees_refunded - Taker fees paid and maker rebates received
Time series (pnl_over_time):
  • Shows realized P&L only - does not include unrealized gains/losses
  • Each data point is cumulative realized P&L at that timestamp
Use condition_id query param to filter to a specific market. This correctly handles split/merge operations by aggregating both sides.
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

Authorizations

x-api-key
string
header
required

Path Parameters

wallet
string
required

Wallet address to fetch PnL for

Query Parameters

granularity
enum<string>
required

Time granularity for PnL data

Available options:
day,
week,
month,
year,
all
start_time
integer | null

Unix timestamp (seconds) for start of range

end_time
integer | null

Unix timestamp (seconds) for end of range

condition_id
string | null

Filter to a specific market by condition ID

Response

Successful Response

Wallet PnL endpoint response.

granularity
enum<string>
required

PnL granularity enum.

Available options:
day,
week,
month,
year,
all
start_time
integer
required
end_time
integer
required
wallet_address
string
required
pnl_over_time
PnLDataPoint · object[]
required
realized_pnl
number | null

Current total realized PnL (USD)

unrealized_pnl
number | null

Current unrealized PnL (USD), computed live from positions

fees_paid
number | null

Total taker fees paid (USD)

fees_refunded
number | null

DEPRECATED: always 0. Refunds are already netted into fees_paid.

total_pnl
number | null

realized + unrealized - fees_paid (USD)