get_transactions

Returns the latest 100000 DEX trades on Ethereum, where tx sender is 0x8Be5…60a8, date since 2023-06-21 and date till 2023-07-01: protocol, timestamp time, trade amount, transaction hash, gas value, sell currency symbol, sell currency address and 5 more fields.

By attitudedecideseth · saved 1 July 2023 · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  "recent_records_limit": 100000,
  "address_to_query": "0x8Be5D1E7a687e8500F4E6C8A78fB0351346860a8",
  "from": "2023-06-21",
  "till": "2023-07-01T23:59:59"
}

Similar queries