BNB vs BUSD

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0xe9e7…7d56 and time after 2021-04-08: base currency address, base currency symbol, quote price, minimum of block, maximum of block, minute, quote currency address and 2 more fields.

By 0hax · saved 1 April 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      time: {after: "2021-04-08T06:00:00Z"}
    ) {
      baseCurrency {
        address
        symbol
      }
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      timeInterval {
        minute(format: "%FT%TZ", count: 60)
      }
      quoteCurrency {
        address
        symbol
        name
      }
    }
  }
}

Variables

{
  "from": "2019-01-01",
  "till": null
}

Similar queries