Call it
curl https://api.peume.com/v1/call/trader-leaderboard \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"time_range": "all",
"sort_by": "total_pnl",
"min_trades": 5,
"min_days_active": 0,
"min_account_age_days": 0,
"min_human_score": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/trader-leaderboard", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"time_range": "all",
"sort_by": "total_pnl",
"min_trades": 5,
"min_days_active": 0,
"min_account_age_days": 0,
"min_human_score": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/trader-leaderboard",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"time_range": "all",
"sort_by": "total_pnl",
"min_trades": 5,
"min_days_active": 0,
"min_account_age_days": 0,
"min_human_score": 0
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: trader-leaderboard.
Parameters
time_rangestringWindow to rank over. Default all (data starts 2025-08-01). Defaults to "all".
1d · 7d · 30d · 90d · all
Example: all
sort_bystringRank by this metric. Always sorted descending. Defaults to "total_pnl".
total_pnl · win_rate · volume_traded
Example: total_pnl
min_tradesintegerOnly traders with at least this many trades. Defaults to 5; pass 0 for the full population. Defaults to 5.
Example: 5
min_days_activeintegerOnly traders active at least this many days (0 = no filter). Defaults to 0.
Example: 0
min_account_age_daysintegerOnly accounts at least this old, in days (0 = no filter). Defaults to 0.
Example: 0
min_human_scoreintegerOnly traders scoring at least this, 0-100 (0 = no filter). Defaults to 0.
Example: 0
dexstringMarket to rank within: main_dex (or omit) for the native market ONLY, or a builder market — one of: xyz, flx, vntl, hyna, km, abcd, cash, para, mkts. NOTE: the omit default differs from /trades/aggregate, where omitting dex aggregates across ALL markets.
main_dex · xyz · flx · vntl · hyna · km · abcd · cash · para · mkts
limitintegerResults per page (1-100). Defaults to 20.
Example: 20
offsetintegerResults to skip. Defaults to 0.
Example: 0
