TOP TRADERS API · GraphQL · WebSocket

Top Traders API rank wallets by volume, PnL & win-rate across DEXs

Skip reconstructing trader PnL from raw swaps and balance diffs. We've already decoded every DEX trade across 40+ chains and Solana — so per-token leaderboards, realized PnL, win-rate and trade counts for any wallet are one GraphQL query away.

Powering trader analytics forNansen logoDexTools logo3Commas logo1inch logo
EVM.DEXTradeByTokensRank wallets for any token by realized USD volume traded across every DEX.Docs
top_traders_volume.graphqlCopy
query {
  EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volume"}
      where: {Trade: {Currency:
        {Symbol: {is: "PEPE"}}}}
    ) {
      Trader: Transaction { From }
      volume: sum(of:
        Trade_Side_AmountInUSD)
    }
  }
}
responseSTREAMING
TraderTokenVolume (USD)
200 · GraphQL · 240msgraphql.bitquery.io
Trusted by 40,000+ developers & teams like
Binance logoChainalysis logoTRM Labs logoNansen logo0x logoCoinMarketCap logoCoin Metrics logoBybit logoLukka logo3Commas logoNexo logoTether logo
40+
Chains supported
1PB+
Blockchain data indexed
10B+
API calls / month
99.9%
Production uptime
01
Forget reconstructing PnL by hand

Ranking traders yourself means rebuilding the whole trade ledger.

To know which wallets are winning, you'd index every DEX, pair each buy with its sell, price both legs in USD and aggregate per wallet — across chains, forever. We already decoded every swap and priced it on-chain, so a leaderboard, PnL or win-rate is a single aggregation query.

What you're doing
Build it yourself
Bitquery Top Traders API
Rank wallets by volume on a token
Index every swap, group per wallet
orderBy descendingByField, done
Realized PnL per trader
Pair buys with sells, price both legs
Bought vs. sold sums in USD
Win-rate and trade count
Track every round-trip yourself
count and conditional sums built in
Per-token leaderboards
Maintain a ranking job per token
One query, any token, any chain
Solana and EVM traders together
Two stacks, two schemas
One schema across chains
First / last trade per wallet
Scan the wallet's full history
min / max time, one field
02
Delivery channels

Four ways to get trader data — one schema underneath.

Design your leaderboard query once in GraphQL, then read the exact same fields as GraphQL streams, Kafka, gRPC or a bulk cloud export. Pick the channel that fits your latency and volume — no second pipeline.

03
Metrics you get

Every ranking signal, computed from on-chain trades.

A single DEXTradeByTokens query, grouped by wallet, returns the full set of trader metrics — rank by any of them, filter by token, chain or time, and read it all in one response.

MetricHowWhat you get
VolVolume tradedsum · USDTotal buy + sell volume per wallet per token, ranked across every DEX
PnLRealized PnLbought vs. soldProfit and loss from completed round-trips — sold volume minus bought, in USD
WinWin-ratederivedShare of a wallet's tokens that closed in profit — the smart-money signal
CntTrade countcountHow many swaps a wallet made — separate one-shot buyers from active traders
TokTokens tradedcount distinctBreadth across distinct assets — find wallets that consistently pick winners
SeenFirst / last trademin · max timeWhen a wallet entered and last traded — entry timing and holding behaviour
+ filter by token, chain, time window or counterparty across 40+ chains and Solana
05
Build it this weekend

The trader products people ship on us.

Each one is a filter on the same indexed trade data — query GraphQL for leaderboards, or subscribe over Kafka and gRPC for bots.

GraphQL

Token top-trader leaderboard

Rank every wallet on a token by realized USD volume and trade count — the table behind a token detail page or screener.

DEXTradeByTokens {
  orderBy: { descendingByField: "volume" }
}
Read the docs
gRPC · Kafka

Copy-trading bot

Pick the top wallets, then subscribe to their swaps the moment they trade — mirror their entries with sub-100ms latency.

subscribe DEXTrades
  where: { Transaction: { From: "<wallet>" } }
Read the docs
GraphQL

Smart-money tracker

Surface wallets that are consistently profitable across many tokens by win-rate and net PnL — your early-signal watchlist.

DEXTradeByTokens
  bought: sum # buy USD
  sold: sum # sell USD → PnL
Read the docs

What teams say about our data

"We did a thorough search of the market for the best onchain data. Bitquery came out on top — and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."

A
Alexander Karsten
Nansen
PnL
Realized profit from bought vs. sold, in USD
40+
Chains plus Solana ranked from one schema
1.8M+
Token leaderboards available on demand

Bitquery does the hard work of parsing blockchain transaction data into a usable form so that we don't have to. We use their interface to diagnose issues with complex transactions and their analytics as a starting point for our own.

0x Protocol logo
Alex Knaggs
0x Protocol

They proved they had the technology to deliver sophisticated data solutions. We extended our support through the Binance X fellowship — building an open-source library of visualization widgets on their blockchain data.

Director, Binance X logo
Flora Sun
Director, Binance X

The complex raw data is available at different levels of detail and from different viewpoints — whether we need simple aggregated transfers or parameters for failed contract calls. The support is responsive, friendly and quick.

Backend Developer, Blockpit logo
Jan Dreske
Backend Developer, Blockpit

Partnering with Bitquery has been highly cost-effective — leveraging their established infrastructure rather than building our own let us rapidly expand our blockchain support and reach a much broader segment of on-chain users.

Co-Founder, Syla logo
Nick Christie
Co-Founder, Syla

Bitquery's products are very intuitive and easy to use. We currently use their products to obtain DEX-related trading and liquidity information, which saves us the manpower and tedious technical details required to develop our own system. Their excellent technical team deserves special praise; they provide near-24/7 support and resolve issues quickly. I greatly appreciate their products and work ethic.

Ourbit logo
Data Team
Ourbit

Bitquery provides the infrastructure we rely on every day. Fast, reliable, and comprehensive across the chains that matter to our business.

Webacy
Webacy
webacy.com
06
Pricing

Start free. Scale when you ship.

Query every blockchain on every plan — no chain is paywalled. Move to commercial when you need volume, SLAs and bulk datashares.

Developer
$0 / month
Free plan for developers or small projects.
  • All blockchains, all plans
  • 10 requests / minute
  • 2 streams for testing
  • GraphQL IDE access
Get started free
Most popular
Commercial
Custom
Tailored solutions for business and enterprise.
  • Scalable calls, no throttling
  • SQL, Cloud, Kafka & more
  • 24/7 engineering access
  • Dedicated onboarding & SLA
Talk to sales
Datashares
Custom
Bulk historical & real-time data on your cloud.
  • Snowflake, BigQuery, S3, Azure
  • No setup or infrastructure
  • Structured for AI agents & MCP
  • Audit data for custodians
Talk to sales
FAQ

Top-trader data questions, answered.

How do I find the top traders for a token?
Query the DEXTradeByTokens dataset, group by Transaction.From and order with orderBy: {descendingByField: "volume"}. Sign up at ide.bitquery.io for an API key, then rank every wallet on any token by volume, PnL or trade count from a single endpoint.
How is realized PnL calculated?
We sum each wallet's USD-priced buy volume and sell volume separately using conditional sum(of: Trade_Side_AmountInUSD) aggregates. Sold minus bought gives realized PnL per wallet per token — no off-chain price joins or manual ledger reconstruction.
Can I rank by volume, PnL and trade count?
Yes. Each is an aggregate on the same query — sum for volume, conditional sums for PnL and count for trades. Sort by any of them with descendingByField to build the exact leaderboard you need.
Do you support Solana top traders?
Yes. The Solana.DEXTradeByTokens dataset ranks wallets by volume and PnL on Raydium, Orca, Meteora and Jupiter using Transaction.Signer — the same schema and aggregates as EVM.
Can I build a copy-trading bot on this?
Yes. Use the leaderboard to pick top wallets, then subscribe to their swaps over WebSocket, Kafka or gRPC — filter DEXTrades by Transaction.From to mirror their entries with sub-100ms latency.
What's the difference between this and the DEX Trades API?
The DEX Trades API gives you every individual swap; the Top Traders API aggregates those swaps per wallet into leaderboards, realized PnL and win-rate. Both share the same indexed data and GraphQL endpoint.

Ship your trader leaderboard this week.

Free API key, every DEX decoded, no node to run. Rank wallets by volume and compute realized PnL in your first call.

No credit card · 10K free points for your first month · All 40+ chains included