Wenlambo price

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0x2c7b…cba4, quote currency is 0xbb4c…095c and trade amount USD is above 10: timestamp time, count, quote price, decimals, base currency name and base currency symbol.

By bas · saved 18 October 2021 · run 11 times · Bitquery API v1

What it returns

Filters

The query

query getQuotePrice {
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, desc: "block.timestamp.time"}
      baseCurrency: {is: "0x2c7b396d17e3a5184d4901380836de7a72c5cba4"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      tradeAmountUsd: {gt: 10}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      count
      quotePrice(calculate: median)
      baseCurrency {
        decimals
        name
        symbol
      }
    }
  }
}

Similar queries