Latest Price of a token on PancakeSwap

Latest token price on PancakeSwap DEX

Returns the latest 2 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0x92a4…68b5 and exchange name is Pancake: timestamp time, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 2 more fields.

By SAID · saved 16 April 2021 · run 29 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 2, desc: "block.timestamp.time"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0x92a42db88ed0f02c71d439e55962ca7cab0168b5"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
    }
  }
}

Similar queries