Combo P&L leaderboard
curl --request GET \
--url https://api.polynode.dev/v3/combos/leaderboard \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v3/combos/leaderboard"
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.polynode.dev/v3/combos/leaderboard', 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.polynode.dev/v3/combos/leaderboard",
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.polynode.dev/v3/combos/leaderboard"
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.polynode.dev/v3/combos/leaderboard")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v3/combos/leaderboard")
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{
"data": [
{
"rank": 1,
"wallet_address": "0x1111111111111111111111111111111111111111",
"realized_pnl": "125.5",
"unrealized_pnl": "12.25",
"total_pnl": "137.75",
"open_combo_count": 2,
"closed_combo_count": 4,
"position_count": 6,
"event_count": 18,
"last_activity_at": "2026-08-29T16:00:00Z",
"win_count": 3,
"loss_count": 1,
"resolved_count": 4,
"win_rate": "0.7500"
}
],
"period": "all",
"window": {
"after": null,
"before": null
},
"pnl_scope": "all_time_marked",
"coverage": {
"status": "direct_cost_basis_only",
"raw_wallet_transfers_included": false,
"eligible_wallet_count": 40,
"excluded_wallet_count": 3,
"transfer_incomplete_wallet_count": 2,
"unmarked_wallet_count": 1
},
"as_of": "2026-08-29T16:01:00Z",
"as_of_block": 90123456,
"source": "combo_state.combo_cost_basis_event"
}{
"error": "invalid_request",
"message": "period=custom requires after, before, or both"
}{
"error": "<string>"
}{
"error": "combo_pnl_unavailable",
"message": "Combo P&L is temporarily unavailable."
}Combos
Combo P&L Leaderboard
Rank eligible Combo wallets by realized P&L over fixed or custom windows, or by marked All Time P&L.
GET
/
v3
/
combos
/
leaderboard
Combo P&L leaderboard
curl --request GET \
--url https://api.polynode.dev/v3/combos/leaderboard \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v3/combos/leaderboard"
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.polynode.dev/v3/combos/leaderboard', 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.polynode.dev/v3/combos/leaderboard",
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.polynode.dev/v3/combos/leaderboard"
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.polynode.dev/v3/combos/leaderboard")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v3/combos/leaderboard")
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{
"data": [
{
"rank": 1,
"wallet_address": "0x1111111111111111111111111111111111111111",
"realized_pnl": "125.5",
"unrealized_pnl": "12.25",
"total_pnl": "137.75",
"open_combo_count": 2,
"closed_combo_count": 4,
"position_count": 6,
"event_count": 18,
"last_activity_at": "2026-08-29T16:00:00Z",
"win_count": 3,
"loss_count": 1,
"resolved_count": 4,
"win_rate": "0.7500"
}
],
"period": "all",
"window": {
"after": null,
"before": null
},
"pnl_scope": "all_time_marked",
"coverage": {
"status": "direct_cost_basis_only",
"raw_wallet_transfers_included": false,
"eligible_wallet_count": 40,
"excluded_wallet_count": 3,
"transfer_incomplete_wallet_count": 2,
"unmarked_wallet_count": 1
},
"as_of": "2026-08-29T16:01:00Z",
"as_of_block": 90123456,
"source": "combo_state.combo_cost_basis_event"
}{
"error": "invalid_request",
"message": "period=custom requires after, before, or both"
}{
"error": "<string>"
}{
"error": "combo_pnl_unavailable",
"message": "Combo P&L is temporarily unavailable."
}GET /v3/combos/leaderboard ranks wallets using the dedicated Combo
cost-basis ledger. It supports realized P&L for 1-day, 7-day, 30-day, and
custom windows, plus realized, unrealized, and total P&L for All Time.
The route is intentionally global. It does not accept tag, category,
market, or event filters.
Request
GET /v3/combos/leaderboard
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
period | string | all | all, 1d, 7d, 30d, or custom |
after | integer | none | Inclusive custom lower bound in Unix seconds |
before | integer | none | Exclusive custom upper bound in Unix seconds |
sort_by | string | mode-specific | total_pnl, realized_pnl, or unrealized_pnl |
limit | integer | 100 | Rows per page; maximum 300 |
offset | integer | 0 | Rank offset; maximum 100000 |
period=customrequiresafter,before, or both. When both are present, the realized window is half-open:[after, before).afterandbeforeare forbidden withall,1d,7d, or30d.- All Time accepts all three sort fields and defaults to
total_pnl. - Fixed and custom windows rank
realized_pnlonly.
Examples
Rank marked All Time total P&L:curl "https://api.polynode.dev/v3/combos/leaderboard?period=all&sort_by=total_pnl" \
-H "x-api-key: $POLYNODE_API_KEY"
curl "https://api.polynode.dev/v3/combos/leaderboard?period=custom&after=1788134400&before=1788220800&sort_by=realized_pnl" \
-H "x-api-key: $POLYNODE_API_KEY"
after leaves the lower
side open; omitting before leaves the upper side open.
Response
{
"data": [
{
"rank": 1,
"wallet_address": "0x1111111111111111111111111111111111111111",
"realized_pnl": "125.5",
"unrealized_pnl": "12.25",
"total_pnl": "137.75",
"open_combo_count": 2,
"closed_combo_count": 4,
"position_count": 6,
"event_count": 18,
"last_activity_at": "2026-08-29T16:00:00Z",
"win_count": 3,
"loss_count": 1,
"resolved_count": 4,
"win_rate": "0.7500"
}
],
"period": "all",
"window": {
"after": null,
"before": null
},
"pnl_scope": "all_time_marked",
"coverage": {
"status": "direct_cost_basis_only",
"raw_wallet_transfers_included": false,
"eligible_wallet_count": 40,
"excluded_wallet_count": 3,
"transfer_incomplete_wallet_count": 2,
"unmarked_wallet_count": 1
},
"as_of": "2026-08-29T16:01:00Z",
"as_of_block": 90123456,
"source": "combo_state.combo_cost_basis_event"
}
Window and scope
| Field | Meaning |
|---|---|
period | Normalized requested period |
window.after | Inclusive resolved lower bound in Unix seconds, or null |
window.before | Exclusive resolved upper bound in Unix seconds, or null |
pnl_scope | all_time_marked for All Time; realized_only for fixed and custom windows |
as_of | RFC3339 ledger-snapshot time |
as_of_block | Indexed block used by the snapshot |
source | Always combo_state.combo_cost_basis_event |
1d, 7d, and 30d responses
return both concrete resolved bounds. A custom response preserves an omitted
side as null.
Row fields
All USD P&L values are decimal strings. Do not parse them through a binary floating-point type when exact arithmetic matters.| Field | Meaning |
|---|---|
rank | Rank in the requested ordering |
wallet_address | Eligible wallet address |
realized_pnl | Realized Combo P&L in decimal USD |
unrealized_pnl | Marked unrealized Combo P&L in decimal USD; null in realized-only modes |
total_pnl | Realized plus unrealized P&L in decimal USD; null in realized-only modes |
open_combo_count | Current eligible open Combo positions, not window-scoped |
closed_combo_count | Current eligible closed Combo positions, not window-scoped |
position_count | Current eligible Combo position snapshot count, not window-scoped |
event_count | Eligible direct-basis events in the realized window; All Time counts all eligible direct-basis events |
last_activity_at | RFC3339 time of the wallet’s latest eligible Combo activity, or null |
win_count | Resolved Combo positions the wallet won, all time, not window-scoped |
loss_count | Resolved Combo positions the wallet lost, all time, not window-scoped |
resolved_count | win_count + loss_count |
win_rate | win_count / resolved_count as a 4-decimal fraction string ("0.7500" = 75%), or null when the wallet has no resolved Combo |
period=custom and this response’s window.after / window.before. The two
place activity differently: ranged leaderboard P&L follows realized events,
and windowed win/loss counts follow when each combo settled.
Cost basis, marks, and exclusions
coverage.status is always direct_cost_basis_only. The leaderboard uses
directly attributable Combo cost-basis events and does not invent basis for an
arbitrary wallet-to-wallet transfer. Every ExchangeV3 OrderFilled row is
attributed once to its signed-order maker; the event’s collateral-denominated
fee increases BUY cost or reduces SELL proceeds. Router and auto-redemptions
are admitted only when their paired PositionRedeemed record proves the
redeemed size and payout.
Which fees are included?
The included fee is specifically the collateral-denominated exchange fee recorded in each signed order’sOrderFilled.fee. It increases BUY cost or
reduces SELL proceeds, so do not deduct that fee again from Combo P&L.
“Maker” here identifies the signed-order owner; it does not by itself
establish who supplied liquidity.
This field does not provide a breakdown of fee components. Gas, separately
collected application or escrow charges, and rebates or rewards outside
this recorded fill fee are not included by this calculation. Do not describe
Combo P&L as including every cost or credit.
Standard spot Wallet P&L excludes separately reported
fees, rebates, and rewards. Perps uses a separate accounting model. The Combo
rule must not be applied to either product’s P&L.
Open Combo balances are marked with the latest Combo fill. Terminal Combo
positions are marked at 1 for a winning payout or 0 for a losing payout.
The endpoint does not replace a missing open mark with zero.
A wallet is omitted from data when any position lacks complete direct cost
basis, its raw-transfer basis is incomplete, or a required mark is
unavailable. Omitted wallets are never zero-filled and therefore cannot
silently fall to the bottom of the ranking. Inspect these fields before
displaying results:
| Coverage field | Meaning |
|---|---|
eligible_wallet_count | Wallets eligible for this ranking snapshot |
excluded_wallet_count | Wallets omitted for incomplete direct/transfer basis or a missing mark |
transfer_incomplete_wallet_count | Wallets whose arbitrary raw transfer prevents complete direct basis |
unmarked_wallet_count | Wallets without every mark required by the requested ranking |
raw_wallet_transfers_included | Always false; arbitrary transferred basis is not inferred |
Errors
| Status | Error | When it occurs |
|---|---|---|
400 | invalid_request | Invalid period, custom bound combination, sort, limit, or offset |
401 | authentication error | The API key is missing or invalid |
503 | combo_pnl_unavailable | The Combo P&L ledger or required mark snapshot is unavailable |
{
"error": "combo_pnl_unavailable",
"message": "Combo P&L is temporarily unavailable."
}
Query Parameters
Response
Ranked eligible wallets with the resolved window, P&L scope, and explicit exclusion coverage.

