Top 10 pairs on ethereum

Returns 10 DEX trades by token on Ethereum, where side currency smart contract is 0xC02a…6Cc2 and block time since 2024-07-29, sorted by total trades, highest first: currency name, currency symbol, side currency name, side currency symbol, protocol name, protocol family, protocol version and 3 more fields.

By Akshat · saved 29 July 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: realtime) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "total_trades"}
      limit: {count: 10}
      where: {Block: {Time: {since: "2024-07-29T07:21:00Z"}}, Trade: {Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}, TransactionStatus: {Success: true}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
        }
        Side {
          Currency {
            Name
            Symbol
          }
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
          SmartContract
        }
      }
      total_trades: count
      total_traded_volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries