task1a_salesEngineer

Active traders on Uniswap in the last 7 days including smart contracts.

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: trade amount and address address.

By George · saved 23 February 2024 · run 1 time · 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: "address.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}
    ) {
      tradeAmount(in: USD, calculate: sum)
      address {
        address
      }
    }
  }
}

Variables

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

Similar queries