Aggregated amounts

Returns DEX trades, where DEX protocol name is uniswap_v3, sorted by count, highest first: buy currency symbol, buy smart contract, sell currency symbol, sell smart contract, block time, count, sum of trade buy amount and sum of trade sell amount.

By Aleksey · saved 3 July 2024 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {is: "uniswap_v3"}}}}
      orderBy: {descendingByField: "count"}
    ) {
      
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      
      Block {
        Time(interval: {count: 1 in: hours})
      }
      
      count
      buyAmount: sum(of: Trade_Buy_Amount)
      sellAmount: sum(of: Trade_Sell_Amount)
    }
  }
}

Similar queries