top traders of a token on pancakeswap

Returns 100 DEX trades by token on Base, where currency smart contract is 0x22af…6f3b and DEX protocol name is pancakeswap_infinity, sorted by volume USD, highest first: owner address, protocol family, protocol name, buyer, sum of trade amount and sum of trade side amount in USD.

By Akshat · saved 5 December 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query topTraders($network: evm_network, $token: String) {
  EVM(network: $network) { 
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, Dex: {ProtocolName: {is: "pancakeswap_infinity"}}}}
    ) {
      Trade {
        Dex {
          OwnerAddress
          ProtocolFamily
          ProtocolName
        }
        Buyer
      }
      bought: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      volume: sum(of: Trade_Amount)
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "network": "base",
  "token": "0x22af33fe49fd1fa80c7149773dde5890d3c76f3b"
}

Similar queries