blockbond_query

Returns DEX trades on Ethereum, where base currency is 0x69e3…9b72, quote currency is 0xc02a…6cc2 and exchange name is Uniswap, sorted by time interval minute: minute, quote amount, quote price, minimum of block and maximum of block.

By Divyasshree N · saved 4 May 2023 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {asc: "timeInterval.minute"}
      date: {since: "2021-06-20T07:23:21.000Z", till: "2023-04-03T15:23:21.000"}
      baseCurrency: {is: "0x69e37422cb87d963367f73a119c8ce9a4d529b72"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      tradeAmountUsd: {gt: 10}
      exchangeName: {is: "Uniswap"}
    ) {
      timeInterval {
        minute(count: 15, format: "%Y-%m-%dT%H:%M:%SZ")
      }
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
     
    }
  }
}

Similar queries