OHM / DAI pairs

Returns DEX trades on Ethereum, where exchange address is 0xc0ae…f2ac, base currency is 0x3835…a899 and quote currency is 0x6b17…1d0f, sorted by time interval minute, highest first: minute, base amount, quote amount, quote price, minimum of block, maximum of block and base currency name.

By gaurav · saved 28 November 2021 · run 18 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "timeInterval.minute"}
      date: {since: "2021-03-07T18:20:21.000Z", till: "2021-11-27T18:20:21.000Z"}
      exchangeAddress: {is: "0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac"}
      baseCurrency: {is: "0x383518188C0C6d7730D91b2c03a03C837814a899"}
      quoteCurrency: {is: "0x6b175474e89094c44da98b954eedeac495271d0f"}
      tradeAmountUsd: {gt: 20}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 10)
      }
      baseAmount
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
      baseCurrency {
        name
      }
    }
  }
}

Similar queries