New Query

ecchi graph

Returns DEX trades on Ethereum and BNB Chain, where quote currency is 0xbb4c…095c, exchange name is Pancake and trade amount USD is above 10, sorted by time interval day: day, quote price, minimum of block and maximum of block.

By TusharBhatia · saved 26 November 2021 · Bitquery API v1

What it returns

Filters

The query

query ($token: String) {
  ethereum(network: bsc) {
    dexTrades(
      options: {asc: "timeInterval.day"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: $token}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      tradeAmountUsd: {gt: 10}
    ) {
      timeInterval {
        day
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries