CORRECT

Returns DEX trades on Ethereum, where base currency is 0xb1c0…e6cc, quote currency is 0xc02a…6cc2 and exchange name is Uniswap or Uniswap v2, sorted by time interval hour: hour, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote price and 3 more fields.

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

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {asc: "timeInterval.hour"}
      date: {since: "2023-08-10", till: "2023-08-18"}
      priceAsymmetry: {lteq: 10}
      tradeAmountUsd: {gteq: 1}
      exchangeName: {in: ["Uniswap", "Uniswap v2"]}
      baseCurrency: {is: "0xb1c064c3f2908f741c9dea4afc5773238b53e6cc"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      timeInterval {
        hour(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
      tradeAmount(calculate: sum, in: USDT)
    }
  }
}

Similar queries