WBNB token price on BNB Chain

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0xe9e7…7d56 and date is 2022-11-11: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By gaurav · saved 18 November 2022 · run 22 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      date: {is: "2022-11-11"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      base_amount_usd: baseAmount(in: USD)
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      quote_amount_usd: quoteAmount(in: USD)
      quotePrice
      transaction {
        hash
      }
    }
  }
}

Similar queries