Top pairs by trade volume

Returns 10 DEX trades by token on Ethereum, where side currency smart contract is 0xC02a…6Cc2 and block time since 2024-09-19, sorted by trade volume, highest first: sum of trade side amount in USD, smart contract, protocol name, protocol family, currency symbol, price in USD, side currency symbol and side smart contract.

By Akshat · saved 19 September 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query TopPairsByVolume {
  EVM(dataset: realtime, network: eth) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "trade_volume"}
      where: {Block: {Time: {since: "2024-09-19T08:41:00Z"}}, TransactionStatus: {Success: true}, Trade: {Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}}
      limit: {count: 10}
    ) {
      trade_volume: sum(of: Trade_Side_AmountInUSD)
      Trade {
        Dex {
          SmartContract
          ProtocolName
          ProtocolFamily
          Pair {
            SmartContract
          }
        }
        Currency {
          Symbol
          SmartContract
        }
        PriceInUSD(maximum: Block_Time)
        Side {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries