SWAMPY price

SWAMP-BUSD

Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0xc5a4…765d, quote currency is 0xe9e7…7d56 and exchange name is Pancake, sorted by time interval minute, highest first: hour, minute, second, base currency symbol, base currency address, base amount, quote currency symbol and 6 more fields.

By supernovva · saved 15 May 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, desc: "timeInterval.minute"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: "0xc5a49b4cbe004b6fd55b30ba1de6ac360ff9765d"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      timeInterval {
        hour(count: 1)
        minute(count: 1)
        second(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      median_price: quotePrice(calculate: median)
      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)
    }
  }
}

Similar queries