Latest Trades Demo

Returns the latest 10 DEX trades on Ethereum, where maker or taker is 0xde65…a195: block height, block hash, unixtime, iso8601, transaction hash, buy amount, buy currency symbol and 5 more fields.

By George · saved 4 December 2021 · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "block.timestamp.unixtime"}
      makerOrTaker: {is: "0xde65efd2d2ddadfd24493713383d2b8664fda195"}
    ) {
      block {
        height
        hash
        timestamp {
          unixtime
          iso8601
        }
      }
      transaction {
        hash
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
    }
  }
}

Similar queries