ALL Trades for a given address

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

By gaurav · saved 31 August 2022 · run 27 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      date: {before: "2020-10-26", after: "2020-09-01"}
      options: {limitBy: {each: "transaction.hash", limit: 1}}
      any: [{txSender: {is: "0x5F2941c2752B4bA3748D1C82DB65F78Ba57c5855"}}, {taker: {is: "0x5F2941c2752B4bA3748D1C82DB65F78Ba57c5855"}}]
    ) {
      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