task1_salesEngineer

To find the Active traders on Uniswap in the last 7 days.

Returns 25000 DEX trades on Ethereum, where exchange address is 0x5c69…aa6f, 0xc0a4…4d95 or 1 more, exchange name is Uniswap and date since 2024-02-14, sorted by trade amount, highest first: tx from address and trade amount.

By George · saved 23 February 2024 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $minTrade: Float!, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limitBy: {each: "transaction.txFrom.address", limit: 1}, limit: $limit, offset: $offset, desc: "tradeAmount"}
      date: {since: $from, till: $till}
      exchangeName: {is: "Uniswap"}
      exchangeAddress: {in: ["0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f", "0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95", "0x1f98431c8ad98523631ae4a59f267346ea31f984"]}
      tradeAmountUsd: {gteq: $minTrade}
    ) {
      transaction {
        txFrom {
          address
        }
      }
      tradeAmount(in: USD, calculate: sum)
    }
  }
}

Variables

{
  "limit": 25000,
  "offset": 0,
  "network": "ethereum",
  "from": "2024-02-14",
  "till": "2024-02-21",
  "minTrade": 1
}

Similar queries