Latest Price of a Token

Trades for a specific token on the Pancake DEX

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0x2f96…1da0 and exchange name is Pancake or Pancake v2: transaction hash, trade index, address address, contract type, currency name, block height, base currency symbol and 4 more fields.

By Antonio · saved 20 January 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0x2f967f5c2249cb657f446632ba6ca29e33f61da0"}
      date: {after: "2021-12-23"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
    }
  }
}

Similar queries