Price Pair Historical Lookup

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xe431…0ddb, quote currency is 0xbb4C…095c and exchange name is Pancake or Pancake v2: minute and quote price.

By haxtuf · saved 15 August 2021 · run 12 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      date: {since: "2021-08-01"}
      baseCurrency: {is: "0xe4318f2acf2b9c3f518a3a03b5412f4999970ddb"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 1)
      }
      price: quotePrice(calculate: average)
    }
  }
}

Variables

{
  "baseAddress": "0xD7B729ef857Aa773f47D37088A1181bB3fbF0099",
  "quoteAddress": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
  "interval": 10
}

Similar queries