Copy of Balance of all liquidity pools for a given token on Ethereum

balance of all liquidity pools for a given token

Returns DEX trades by token, where currency smart contract is 0x0f7d…ccc8, sorted by txc, highest first: count, currency name, smart contract, currency symbol, sum of balance update amount, protocol family and protocol name.

By Divyasshree · saved 5 June 2025 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x0f7dc5d02cc1e1f5ee47854d534d332a1081ccc8"}}}}
      orderBy: {descendingByField: "txc"}
    ) {
      txc: count
      joinBalanceUpdates(
        join: left
        BalanceUpdate_Address: Trade_Dex_SmartContract
        orderBy: {descendingByField: "balance"}
      ) {
        Currency {
          Name
          SmartContract
          Symbol
        }
        balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      }
      Trade {
        Dex {
          SmartContract
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Similar queries