trades for wallet

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

By gaurav · saved 5 August 2022 · run 11 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      date: {after: "2022-06-01", before: "2022-06-03"}
      any: [{taker: {is: "0x1027b7aa689ea0c4b48b17d85b2a5093ee8f051e"}}, {txSender: {is: "0x1027b7aa689ea0c4b48b17d85b2a5093ee8f051e"}}]
      exchangeName: {}
      txHash: {}
    ) {
      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