Top traders of a given token in a pair

Returns 10 DEX trades by token on Ethereum, where currency smart contract is 0xb624…6934 and DEX smart contract is 0x6222…7ac5, sorted by count, highest first: sum of trade amount in USD, sum of trade side amount in USD, count, buyer, smart contract, currency symbol and currency name.

By gaurav · saved 1 May 2024 · run 14 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "count"}
      limitBy: {count: 1, by: Trade_Buyer}
      limit: {count: 10}
      where: {Trade: {Currency: {SmartContract: {is: "0xb624960aaad05d433075a5c9e760adec26036934"}}, Dex: {SmartContract: {is: "0x62220cca3fa08e9b35bb2c775d20cf63a8de7ac5"}}}}
    ) {
      buy: sum(of: Trade_AmountInUSD)
      sell: sum(of: Trade_Side_AmountInUSD)
      count
      Trade {
        Buyer
        Currency {
          SmartContract
          Symbol
          Name
        }
      }
    }
  }
}

Similar queries