PancackeSwap Token Average Historical Price

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x3379…490a, quote currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2: minute and quote price.

By haxtuf · saved 17 August 2021 · run 13 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      # This works:
      #date: {since: "2021-08-13T00:43:00Z"}
      # This doesn't:
      date: {is: "2021-08-18"}
      time: {since: "2021-08-18T04:13:36.853958Z"}
      baseCurrency: {is: "0x3379a0bdf5a5cb566127c421782686ba0f80490a"}
      #BNB:
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      #USDT:
      #quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}

      exchangeName: {in: ["Pancake", "Pancake v2"]}
    ) {
      timeInterval {
        minute(format: "%F %T", count: 1)
      }
      price: quotePrice(calculate: average)
    }
  }
}

Similar queries