single_address_profit_analysis.py

Returns the latest 100000 DEX trades on Ethereum, where tx sender is 0x4e46…a072, date since 2023-04-01 and date till 2023-07-07: protocol, timestamp time, trade amount, transaction hash, sell currency symbol, sell currency address, sell amount and 5 more fields.

By Tahm2 · saved 7 July 2023 · run 38 times · 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
      }
      sellCurrency {
        symbol
        address
      }
      sellAmount(calculate: minimum)
      buyCurrency {
        symbol
        address
      }
      buyAmount(calculate: minimum)
    side
      gasValue(in: USDT)
    }
  }
}

Variables

{
   "recent_records_limit": 100000,
   "address_to_query": "0x4e467d4d4457f230bc36c139c50105158694a072",
   "from": "2023-04-01",
   "till": "2023-07-07"
}

Similar queries