Metadoge price in BNB

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0x31e7…4b25, quote currency is 0xbb4C…095c and exchange name is Pancake or Pancake v2: transaction hash, trade index, block height, base currency symbol, base currency address, quote currency symbol, quote currency address and quote price.

By matthew · saved 23 November 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, desc: ["block.height","tradeIndex"]}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0x31e7ddebc4b4c1a9ba91a761390445f887354b25"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      date: {after: "2021-11-22"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc_testnet",
  "from": "2021-11-22",
  "till": "2021-11-23T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries