gabe pancakeswap

Returns DEX trades on Ethereum and BNB Chain, where exchange address is 0xcA14…0c73, base currency is 0x6e0b…ad9c and quote currency is 0xbb4c…095c, sorted by time interval minute: minute, quote amount, minimum of block, count, quote price and maximum of block.

By Bart · saved 12 January 2022 · Bitquery API v1

What it returns

Filters

The query

{
    ethereum(network: bsc) {
      dexTrades(
        options: {asc: "timeInterval.minute"}
        exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
        baseCurrency: {is: "0x6e0bef56b648b3eebae3808b8cbe7efe8755ad9c"},
        quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},
        date: {since: "2022-01-11T07:23:21.000Z", till: "2022-01-11T15:23:21.000Z"}
        tradeAmountUsd: {gt: 10}
      ) 
      {
        timeInterval {
          minute(count: 1, format: "%Y-%m-%dT%H:%M:%SZ")  
        }
        volume: quoteAmount
        open: minimum(of: block, get: quote_price)
        quoteAmount
        trades: count
        quotePrice
        maximum_price: quotePrice(calculate: maximum)
        minimum_price: quotePrice(calculate: minimum)
        median_price: quotePrice(calculate: median)
        open_price: minimum(of: block, get: quote_price)
        close_price: maximum(of: block, get: quote_price)
      }
    }
  }

Similar queries