Batch trader PnL summaries
curl --request POST \
--url https://api.struct.to/v1/polymarket/trader/pnl/batch \
--header 'Content-Type: application/json' \
--data '
{
"wallets": [
"<string>"
],
"timeframes": [
"<string>"
]
}
'import requests
url = "https://api.struct.to/v1/polymarket/trader/pnl/batch"
payload = {
"wallets": ["<string>"],
"timeframes": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({wallets: ['<string>'], timeframes: ['<string>']})
};
fetch('https://api.struct.to/v1/polymarket/trader/pnl/batch', 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.struct.to/v1/polymarket/trader/pnl/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'wallets' => [
'<string>'
],
'timeframes' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.struct.to/v1/polymarket/trader/pnl/batch"
payload := strings.NewReader("{\n \"wallets\": [\n \"<string>\"\n ],\n \"timeframes\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.struct.to/v1/polymarket/trader/pnl/batch")
.header("Content-Type", "application/json")
.body("{\n \"wallets\": [\n \"<string>\"\n ],\n \"timeframes\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.struct.to/v1/polymarket/trader/pnl/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallets\": [\n \"<string>\"\n ],\n \"timeframes\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"0x96cfcb0c30942cfcd1cdf76c7d408794d66b1acb": {
"lifetime": {
"trader": {
"address": "0x96cfcb0c30942cfcd1cdf76c7d408794d66b1acb",
"name": "mintblade",
"pseudonym": "Golden-Reclamation",
"verified_badge": false
},
"realized_pnl_usd": 1878816.203922,
"total_pnl_usd": 9094807.981258,
"unrealized_pnl_usd": 7215991.777336,
"usd_balance": 3367872.058961,
"realized_pnl_pct": 21.719621,
"total_pnl_pct": 105.13843,
"open_positions_value": 14351553.789366,
"events_traded": 4,
"categories_traded": 1,
"markets_traded": 5,
"markets_won": 4,
"markets_lost": 0,
"market_win_rate_pct": 100,
"avg_win_usd": 469704.050981,
"avg_loss_usd": 0,
"profit_factor": 0,
"total_buys": 727,
"total_sells": 0,
"total_redemptions": 4,
"total_volume_usd": 11916491.517144,
"buy_volume_usd": 8522919.883091,
"total_fees": 127397.55907,
"total_wins_usd": 1878816.203922,
"total_losses_usd": 0,
"best_trade_pnl_usd": 1351658.511818,
"best_trade_condition_id": "0xbc54d73527785bdc7b443cfdf3b0d59558c5ac2bbffca23425ecfbd161b07317",
"best_trade_metadata": {
"market_slug": "fifwc-ksa-ury-2026-06-15-ury",
"event_slug": "fifwc-ksa-ury-2026-06-15",
"question": "Will Uruguay win on 2026-06-15?",
"title": "Uruguay"
},
"avg_hold_time_seconds": 518864,
"first_trade_at": 1780521522,
"last_trade_at": 1781580031,
"open_position_count": 1
}
}
}Trader
Batch trader PnL summaries
PnL summaries for many wallets across many timeframes in one call, keyed by wallet then timeframe (a wallet/timeframe with no data is omitted).
POST
/
polymarket
/
trader
/
pnl
/
batch
Batch trader PnL summaries
curl --request POST \
--url https://api.struct.to/v1/polymarket/trader/pnl/batch \
--header 'Content-Type: application/json' \
--data '
{
"wallets": [
"<string>"
],
"timeframes": [
"<string>"
]
}
'import requests
url = "https://api.struct.to/v1/polymarket/trader/pnl/batch"
payload = {
"wallets": ["<string>"],
"timeframes": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({wallets: ['<string>'], timeframes: ['<string>']})
};
fetch('https://api.struct.to/v1/polymarket/trader/pnl/batch', 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.struct.to/v1/polymarket/trader/pnl/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'wallets' => [
'<string>'
],
'timeframes' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.struct.to/v1/polymarket/trader/pnl/batch"
payload := strings.NewReader("{\n \"wallets\": [\n \"<string>\"\n ],\n \"timeframes\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.struct.to/v1/polymarket/trader/pnl/batch")
.header("Content-Type", "application/json")
.body("{\n \"wallets\": [\n \"<string>\"\n ],\n \"timeframes\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.struct.to/v1/polymarket/trader/pnl/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallets\": [\n \"<string>\"\n ],\n \"timeframes\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"0x96cfcb0c30942cfcd1cdf76c7d408794d66b1acb": {
"lifetime": {
"trader": {
"address": "0x96cfcb0c30942cfcd1cdf76c7d408794d66b1acb",
"name": "mintblade",
"pseudonym": "Golden-Reclamation",
"verified_badge": false
},
"realized_pnl_usd": 1878816.203922,
"total_pnl_usd": 9094807.981258,
"unrealized_pnl_usd": 7215991.777336,
"usd_balance": 3367872.058961,
"realized_pnl_pct": 21.719621,
"total_pnl_pct": 105.13843,
"open_positions_value": 14351553.789366,
"events_traded": 4,
"categories_traded": 1,
"markets_traded": 5,
"markets_won": 4,
"markets_lost": 0,
"market_win_rate_pct": 100,
"avg_win_usd": 469704.050981,
"avg_loss_usd": 0,
"profit_factor": 0,
"total_buys": 727,
"total_sells": 0,
"total_redemptions": 4,
"total_volume_usd": 11916491.517144,
"buy_volume_usd": 8522919.883091,
"total_fees": 127397.55907,
"total_wins_usd": 1878816.203922,
"total_losses_usd": 0,
"best_trade_pnl_usd": 1351658.511818,
"best_trade_condition_id": "0xbc54d73527785bdc7b443cfdf3b0d59558c5ac2bbffca23425ecfbd161b07317",
"best_trade_metadata": {
"market_slug": "fifwc-ksa-ury-2026-06-15-ury",
"event_slug": "fifwc-ksa-ury-2026-06-15",
"question": "Will Uruguay win on 2026-06-15?",
"title": "Uruguay"
},
"avg_hold_time_seconds": 518864,
"first_trade_at": 1780521522,
"last_trade_at": 1781580031,
"open_position_count": 1
}
}
}Body
application/json
Response
PnL summaries keyed by wallet and timeframe
Show child attributes
Show child attributes
Last modified on August 7, 2026
Was this page helpful?
⌘I