top buyers of a token

Returns 10 DEX trades by token, where currency smart contract is 0x53E0…ad39, sorted by bought, highest first: buyer, currency symbol, currency name, smart contract and sum of trade side amount in USD.

By Akshat · saved 10 February 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM {
    DEXTradeByTokens(
      orderBy: {descendingByField: "bought"}
      limit: {count: 10}
      where: {Trade: {Currency: {SmartContract: {is: "0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39"}}}}
    ) {
      Trade {
        Buyer
        Currency {
          Symbol
          Name
          SmartContract
        }
      }
      bought: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries