v2 query vol

Returns 1000 DEX trades, where DEX protocol family is Uniswap, DEX protocol name is uniswap_v2 and block time since 2024-11-25, sorted by b, highest first: sum of trade buy amount, sum of trade sell amount, buy currency name, buy currency symbol, buy smart contract, sell currency name, sell currency symbol and sell smart contract.

By gaurav · saved 2 December 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM (dataset:combined){
    DEXTrades(
      limit: {count: 1000}
      orderBy: {descendingByField: "b"}
      where: {Trade: {Dex: {ProtocolFamily: {is: "Uniswap"}, ProtocolName: {is: "uniswap_v2"}}}, Block: {Time: {since: "2024-11-25T23:00:00Z"}}}
    ) {
      b: sum(of: Trade_Buy_Amount)
      s: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries