Price_Pepe__

Returns the latest DEX trade on Ethereum, where quote currency is 0xc02a…6cc2 and base currency is 0x6982…1933: quote price, expression, block height, trade index, address address, base amount, base currency address and 5 more fields.

By Omkar_BQ · saved 8 February 2024 · run 47 times · Bitquery API v1

What it returns

Filters

The query

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

Similar queries