top buyers of a token

Returns 10 DEX trades by token on Solana, sorted by buy, highest first: account address, token owner, currency symbol, currency name, currency mint address and sum of trade side amount in USD.

By Akshat · saved 10 February 2025 · run 1 time · Bitquery API v2

What it returns

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "buy"}
      where: {Trade: {Currency: {MintAddress: {is: ""}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 10}
    ) {
      Trade {
        Account{
          Address
          Token{
            Owner
          }
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
      }
      buy: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries