Latest Price (Pancake)

Returns the latest DEX trade on Ethereum and BNB Chain, where quote currency is 0xbb4C…095c and exchange name is Pancake: block height, iso8601, minute, base currency symbol, base currency address and maximum of block.

By Damien · saved 24 July 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: { desc: "block.height", limit: 1 }
      exchangeName: {is: "Pancake"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      timeInterval {
        minute(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries