Current Price of token on DEX

current price of token currency Pair

Returns one DEX trade on Ethereum, where base currency is 0x6942…9528 and quote currency is 0xC02a…6Cc2, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, quote currency symbol and quote price.

By Emmanuel Ajala · saved 6 May 2024 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x69420E3A3aa9E17Dea102Bb3a9b3B73dcDDB9528"}
      quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

Similar queries