TradesofWallet

Returns the latest 10 DEX trades on Ethereum, where maker or taker is 0x86aa…221c: block height, iso8601, maker address, taker address, transaction hash, buy currency address, buy currency name and 3 more fields.

By Omkar Acharekar · saved 11 May 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime, $address: String!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: $limit, offset: $offset, desc: "block.height"}
      date: {since: $from, till: $till}
      makerOrTaker: {is: $address}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      maker {
        address
      }
      taker {
        address
      }
      transaction {
        hash
      }
      buyCurrency {
        address
        name
      }
      sellCurrency {
        address
        name
      }
      price
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x86aa18ea4e49486dd6629a60f3e50aeb76e8221c",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries