Latest Price of an Ethereum Token

Trades for a specific token on the Uniswap DEX

Returns the latest DEX trade on Ethereum, where base currency is 0x6942…9528, quote currency is 0xC02a…6Cc2 and exchange name is Uniswap: transaction hash, trade index, address address, contract type, currency name, block height, base currency symbol and 4 more fields.

By Emmanuel Ajala · saved 6 May 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      baseCurrency: {is: "0x69420E3A3aa9E17Dea102Bb3a9b3B73dcDDB9528"}
      quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      date: {after: "2024-04-24"}
      exchangeName: {in: "Uniswap"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
    }
  }
}

Similar queries