BNB_Price

Returns one DEX trade on Ethereum and BNB Chain, where quote currency is 0x55d3…7955 and base currency is 0xbb4c…095c, sorted by block height transaction index, highest first: quote price, expression, block height, address address, base amount, base currency address, base currency symbol and 5 more fields.

By Omkar_BQ · saved 4 March 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "transaction.index"], limit: 1}
      quoteCurrency: {is: "0x55d398326f99059fF775485246999027B3197955"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      quotePrice
      USDPrice: expression(get: "quoteAmountUSD / baseAmount")
      block {
        height
      }
      smartContract {
        address {
          address
        }
      }
      baseAmountUSD:baseAmount(in: USD)
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmountUSD:quoteAmount(in: USD)
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
        index
      }
    }
  }
}

Similar queries