youhua

Returns the latest 100 DEX trades on Ethereum, where tx sender is 0x8366…845b: protocol, timestamp time, trade amount, transaction hash, gas value, sell currency symbol, sell amount and 2 more fields.

By attitudedecideseth · saved 29 June 2023 · run 66 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery($recent_records_limit: Int!, $address_to_query: String!) {
  ethereum(network: ethereum) {
    dexTrades(
      txSender: {is: $address_to_query}
      options: {limitBy: {each: "transaction.hash", limit: 10}, desc: "block.timestamp.time", limit: $recent_records_limit}
    ) {
      protocol
      block(time: {}) {
        timestamp {
          time
        }
      }
      tradeAmount(in: USDT)
      transaction {
        hash
        gasValue
      }
      sellCurrency {
        symbol
      }
      sellAmount
      buyCurrency {
        symbol
      }
      buyAmount
    }
  }
}

Variables

{
  "recent_records_limit": 100,
  "address_to_query": "0x8366812163991Dd7a54A0ec6191e5E5961Db845b"
}

Similar queries