OHLC with Filters

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xe9e7…7d56, quote currency is 0xbb4c…095c and date since 2022-07-31, sorted by time interval minute, highest first: minute, quote amount, quote price, minimum of block, maximum of block and trade amount.

By lukas · saved 19 August 2022 · run 85 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      date: {since: "2022-07-31T00:00:00.000Z", till: "2022-08-01T00:00:00.000Z"}
      baseCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      options: {desc: "timeInterval.minute"}
      priceAsymmetry: {lteq: 10},
      tradeAmountUsd: {gteq: 1}
    ) {
      timeInterval {
        minute(count: 1440, 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)
      tradeUSD: tradeAmount(in: USD)
    }
  }
}
 

Similar queries