DEX Smart Contract Protocols

Returns 10 DEX trades on Arbitrum, where block date since 2025-02-06 and block date till 2025-02-13, sorted by trades, highest first: chain ID, unique of trade buy currency name, unique of trade DEX smart contract, count, protocol name, protocol family and protocol version.

By Nadia · saved 13 February 2025 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Success: true}}
      orderBy: {descendingByField: "trades"}
    ) {
      ChainId
      currencies: uniq(of: Trade_Buy_Currency_Name)
      contracts: uniq(of: Trade_Dex_SmartContract)
      trades: count
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
    }
  }
}

Variables

{
  "network": "arbitrum",
  "limit": 10,
  "offset": 0,
  "from": "2025-02-06",
  "till": "2025-02-13",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2025-02-09"
}

Similar queries