Top Traders by protocol

Returns 10 DEX trades on Ethereum, where DEX protocol name is uniswap_v2, block date since 2024-01-03 and block date till 2024-01-10, sorted by trades, highest first: unique of trade buy buyer, count and sum of trade buy amount in USD.

By Nadia · saved 17 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $protocol: String, $from: String, $till: String, $limit: Int!) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Dex: {ProtocolName: {is: $protocol}}, Success: true}}
      orderBy: {descendingByField: "trades"}
      limit: {count: $limit}
    ) {
      trader: uniq(of: Trade_Buy_Buyer)
      trades: count
      volume_usd: sum(of: Trade_Buy_AmountInUSD)
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2024-01-03",
  "till": "2024-01-10",
  "protocol": "uniswap_v2"
}

Similar queries