DAI_WETH and WETH_DAI Exchanges based volume for a given time

Returns DEX trades on Ethereum, where buy currency is 0x6b17…1d0f, sell currency is 0xc02a…6cc2 and time since 2023-02-20: trade amount and exchange name.

By gaurav · saved 23 May 2023 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum {
    dai_weth: dexTrades(
      time: {since: "2023-02-20T07:23:21", till: "2023-02-20T10:20:00"}
      buyCurrency: {is: "0x6b175474e89094c44da98b954eedeac495271d0f"}
      sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      tradeAmount(calculate: sum, in: USDT)
      exchange {
        name
      }
    }
    weth_dai: dexTrades(
      time: {since: "2023-02-20T07:23:21", till: "2023-02-20T10:20:00"}
      sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      buyCurrency: {is: "0x6b175474e89094c44da98b954eedeac495271d0f"}
    ) {
      tradeAmount(calculate: sum, in: USDT)
      exchange {
        name
      }
    }
  }
}

Similar queries