get cake bnb price on spec block

Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0x0e09…ce82 and quote currency is 0xbb4C…095c, sorted by block height transaction index: block height, timestamp time, unixtime, transaction index, base currency symbol, quote currency symbol and quote price.

By medi · saved 20 April 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
    height: {gteq: 6481098}
      options: {asc: ["block.height", "transaction.index"], limit: 1}

    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
          unixtime
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

Similar queries