Token Trade Pairs bu 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 count, highest first: block date, chain ID, unique of block date, count, sum of trade buy amount, buy currency symbol, buy smart contract and 2 more fields.

By Nadia · saved 10 January 2024 · run 17 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String, $protocol: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Dex: {ProtocolName: {is: $protocol}}}}
      orderBy: {descendingByField: "count"}
    ) {
      Block {
        Date(minimum: Block_Date)
      }
      ChainId
      uniq(of: Block_Date)
      count
      Buy_Amount: sum(of: Trade_Buy_Amount)
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

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

Similar queries