top traders

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

By gaurav · saved 11 April 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query TopTraders($token: String, $time_ago: DateTime) {
  Solana (dataset:combined) {
    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
        }
        
      }
      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": "F4o7VEb8tBE7m1zKPgrB3aLg8MfU2cB7geoDGZzgpump",
  "pool": "EDkpZeHx2FfzpeyQckWPmn7QcoU2AZTuGGr3UZGBVU7g",
  "time_ago": "2025-04-11T03:49:56Z"
}

Similar queries