dexTrades for wallet fix

Returns the latest 100 DEX trades on Ethereum, where tx sender is 0x73a3…20cB and date is 2023-11-07: base amount, buy amount, block height, unixtime, sell amount, tx from address, gas value and 6 more fields.

By lukas · saved 9 November 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query get_dex_trades($address: String, $date: ISO8601DateTime) {
  ethereum {
    dexTrades(
      options: {limit: 100, desc: "block.timestamp.unixtime"}
      date: {is: $date}
      txSender: {is: $address}
    ) {
      baseAmount(in: USD)
      buyAmount(in: USD)
      block {
        height
        timestamp {
          unixtime
        }
      }
      sellAmount(in: USD)
      transaction {
        txFrom {
          address
        }
        gasValue
        hash
      }
      side
      quoteCurrency {
        name
        symbol
        address
      }
      quoteAmount
    }
  }
}

Variables

{
  "address": "0x73a3225e206b236c63c34D828D9324Cce7AE20cB",
  "date": "2023-11-07"
}

Similar queries