Top traders global

Returns 100 DEX trades by token on Solana, where currency mint address is 9BB6NF…pump and block time after 2025-04-19, sorted by volume USD, highest first: account owner, program address, protocol family, protocol name, sum of trade amount and sum of trade side amount in USD.

By codewithnazim · saved 19 April 2025 · Bitquery API v2

What it returns

Filters

The query

query TopTraders($token: String, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {Trade: {Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}}
    ) {
      Trade {
        Account {
          Owner
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
      }
      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

{
  "token": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
  "time_ago": "2025-04-19T02:00:17Z"
}

Similar queries