TopTraders

Returns 250 DEX trades by token on Solana, where currency mint address is GGEEC3…pump, sorted by volume, highest first: account owner, sum of trade side amount and count.

By Joshua Andal · saved 10 March 2025 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query TopTraders($token: String) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volume"}
      limit: {count: 250}
      where: {Trade: {Side: {Amount: {}, Currency: {MintAddress: {}}}, Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Account {
          Owner
        }
      }
      bought: sum(of: Trade_Side_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Side_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      volume: sum(of: Trade_Side_Amount)
      buyTrades: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sellTrades: count(if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "token": "GGEEC3S3ndixQ3wxJcb9Q5pGJxxcn8DzP8cRBEsYpump",
  "base": "So11111111111111111111111111111111111111112"
}

Similar queries