top pools based on count

Returns 20 DEX trades on Ethereum, where block time after 2024-01-04, sorted by trades, highest first: smart contract, buy currency name, buy currency symbol, buy smart contract, sell currency name, sell currency symbol, sell smart contract and 3 more fields.

By gaurav · saved 5 January 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 20}
      limitBy: {by: Trade_Dex_Pair_SmartContract, count: 1}
      orderBy: {descendingByField: "trades"}
      where: {Block: {Time: {after: "2024-01-04T00:00:00Z"}}}
    ) {
      Trade {
        Dex {
          Pair {
            SmartContract
          }
        }
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      tradeBuyAmount: sum(of: Trade_Buy_Amount)
      tradeSellAmount: sum(of: Trade_Sell_Price)
      trades: count
    }
  }
}

Similar queries