ecchi token fixed token

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x5609…2054, quote currency is 0xbb4c…095c and exchange name is Pancake, 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  {
  ethereum(network: bsc) {
    dexTrades(
      options: {asc: "timeInterval.day"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: "0x5609366c91d87e6aad1f880999825da4875c2054"}
      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