Trade of a txsender - 2

Returns the latest DEX trades on Ethereum, where tx sender is 0xaf95…e8c3, date since 2023-04-25 and date till 2023-04-27: iso8601, gas value, maker address, taker address, full name, buy currency address, buy currency name and 9 more fields.

By gaurav · saved 8 May 2023 · run 21 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "block.timestamp.time"}
      date: {since: $from, till: $till}
      txSender: {is: "0xaf951f7a4aa4e2a033b034af0897273ed553e8c3"}
    ) {
      block {
        timestamp {
          time: iso8601
        }
      }
      gasValue
      gasValueInUSD: gasValue(in: USD)
      maker {
        address
      }
      taker {
        address
      }
      exchange {
        fullName
      }
      buyCurrency {
        address
        name
      }
      sellCurrency {
        address
        name
      }
      transaction {
        hash
        txFrom {
          address
        }
        to {
          address
        }
      }
      buyAmount
      buyAmountInUSD: buyAmount(in: USD)
      sellAmount
      sellAmountInUSD: sellAmount(in: USD)
      quoteCurrency {
        address
        name
      }
    }
  }
}

Variables

{
  "address": "0xaf951f7a4aa4e2a033b034af0897273ed553e8c3",
  "from": "2023-04-25T12:45:14.115Z",
  "network": "ethereum",
  "till": "2023-04-27T08:45:14.115Z"
}

Similar queries