Your users’ verified wallets ranked for a period, by volume, realized PnL, win rate or number of trades. Every entry carries the owner’s profile and KOL badge, so you can render a verified leaderboard in your app directly.Only wallets with trades in the period appear. Enterprise keys can add scope=global to rank every CabalSpy ID user.
The leaderboard is cached for 30 seconds. To page through it, pass the wallet of the last entry, data.pagination.next_cursor, as cursor.
Query Parameters
string
required
Chain. One of solana, bnb, base, eth, rh.
string
default:"1d"
Ranking window, one of 6h, 1d, 7d or 30d.
string
default:"volume"
Ranking order, highest first. One of volume, pnl (native), pnl_usd, win_rate (ties broken by closed positions) or trades.
integer
default:"100"
Entries per page, 1 to 500.
string
Cursor for the next page, the data.pagination.next_cursor from the previous response.
string
default:"instance"
global ranks every CabalSpy ID user. Enterprise plan only.
string
Your Instance ID. Only needed when your account has several instances.
string
required
Your API key. Alternatively pass it as an Authorization Bearer header.
const p = new URLSearchParams({ blockchain: "solana", period: "7d", sort: "pnl_usd", limit: "25" });const res = await fetch(`https://api-id.cabalspy.xyz/v1/wallets/leaderboard?${p}`, { headers: { Authorization: "Bearer YOUR_KEY" },});const { data } = await res.json();data.leaderboard.forEach(e => console.log(e.rank, e.profile.username, e.period_stats.realized_pnl_usd));
Response
boolean
True on success.
object
Show data
string
Chain.
string
Always csid.
string
instance or global.
string
The requested window.
string
The ranking order.
string
Native currency of the chain.
object
limit, total (ranked wallets), has_more and next_cursor (null means end).
array
Show entry
integer
Position in the ranking, starting at 1.
string
Wallet address.
object
csid_id, username, name, image_url, twitter (null without X), telegram (t.me link or empty), blockchain, currency, wallet_type (always csid), kol and public_trading (whether the user shows their trading publicly on CabalSpy ID).
object
Show period_stats
string
The requested window.
number
Bought (native).
number
Bought in USD.
number
Sold (native).
number
Sold in USD.
number
Buy plus sell volume (native).
number
Buy plus sell volume in USD.
number
Realized PnL (native), sells minus buys.
number
Realized PnL in USD.
number
Realized PnL percentage.
number
Average holding time in minutes.
integer
All trades.
integer
Buys.
integer
Sells.
object
win_count, closed_count and win_rate_percentage.
object
total_tokens, the number of tokens traded in the period.