dex ohlc

Returns DEX trades on Ethereum and BNB Chain, where exchange address is 0xcA14…0c73, base currency is 0xe9e7…7D56 and quote currency is 0x55d3…7955, sorted by time interval minute: minute, quote amount, quote price, minimum of block, maximum of block, base currency name and quote currency name.

By gaurav · saved 11 November 2021 · run 10 times · Bitquery API v1

What it returns

Filters

The query

 {
    ethereum(network: bsc) {
      dexTrades(
        options: {asc: "timeInterval.minute"}
      date: {since: "2021-11-07T18:20:21.000Z", till: "2021-11-10T18:20:21.000Z"}
      exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
      baseCurrency: {is: "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56"},
      quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"},
      tradeAmountUsd: {gt: 10}
      ) {
        timeInterval {
          minute(format: "%FT%TZ", count: 10)
        }
        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
        }
        quoteCurrency {
          name
        }
      }
    }
  }

Similar queries