dexTrades for wallet

Returns the latest 10000 DEX trades on Ethereum, where time since 2023-11-07 and time till 2023-11-07: side, buy amount, block height, unixtime, sell amount, gas value, transaction hash and 11 more fields.

By Imperfect · saved 9 November 2023 · Bitquery API v1

What it returns

Filters

The query

query get_dex_trades($address: String) {
  ethereum {
    dexTrades(
      options: {limit: 10000, desc: "block.timestamp.unixtime"}
      time: {since: "2023-11-07T16:00:00", till: "2023-11-07T22:00:00"}
    ) {
      side
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      block {
        height
        timestamp {
          unixtime
        }
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      transaction(txSender: {is: $address}) {
        gasValue
        hash
        nonce
        index
      }
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      tradeIndex
      quoteAmount
      quoteCurrency {
        tokenId
        name
      }
      tradeAmount(in: USD)
    }
  }
}

Variables

{
    "address": "0x73a3225e206b236c63c34d828d9324cce7ae20cb",
    "date": "2023-11-06"
}

Similar queries