Get 10 latest trades on Uniswap

Retrieve the ten latest trades on Uniswap on the Ethereum network. This query provides details such as the trade amount in USD, quote currency, sell currency, timestamp, and transaction hash.

By Nikhil · saved 22 June 2023 · run 23 times · Bitquery API v1

What it returns

Filters

The query

query get_ten_latest_trades_on_uniswap {
  ethereum(network: ethereum) {
    dexTrades(
      protocol: {is: "Uniswap"}
      options: {desc: "block.timestamp.iso8601", limit: 10}
    ) {
      tradeAmount(in: USD)
      quoteCurrency {
        address
        name
        symbol
      }
      sellCurrency {
        address
        name
        symbol
      }
      block {
        timestamp {
          iso8601
        }
      }
      transaction {
        hash
      }
    }
  }
}

Similar queries