save

Returns 10 DEX trades on Ethereum, where quote currency is 0xc02a…6cc2, base currency is 0x6982…1933 and date since 2023-10-30, sorted by time interval hour, highest first: hour, expression, base amount, base currency address, base currency symbol, quote amount, quote currency address and quote currency symbol.

By Omkar Acharekar · saved 2 November 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "timeInterval.hour"}
      date: {since: "2023-10-30", till: "2023-11-03"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      baseCurrency: {is: "0x6982508145454Ce325dDbE47a25d4ec3d2311933"}
    ) {
      timeInterval {
        hour(count: 1)
      }
      USDPrice: expression(get: "quoteAmountUSD / baseAmount")
      baseAmount(calculate: anyLast)
      baseCurrency {
        address
        symbol
      }
      quoteAmountUSD: quoteAmount(in: USD, calculate: anyLast)
      quoteCurrency {
        address
        symbol
      }
    }
  }
}

Similar queries