Get Trades by Address

ALL Trades for a given address

Returns DEX trades on Ethereum, where date since 2022-09-01: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By lukas · saved 24 September 2022 · run 6 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      date: {since: "2022-09-01"}
      options: {limitBy: {each: "transaction.hash", limit: 20}}
      any: [{txSender: {is: "0x71d60add71060954de8adbe1073dd68c83b6506c"}}, {taker: {is: "0x71d60add71060954de8adbe1073dd68c83b6506c"}}]
    ) {
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries