liquidiy of all token pools

Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(dataset: combined) archive full history combined archive + realtime in one result Archive and comb

By Kshitij Mahajan · saved 24 June 2026 · run 10 times · Bitquery API v2

What it returns

The query

# Historical data
#   This query uses the realtime dataset (the default), which holds only a
#   recent window - hours to days depending on the cube.
#
#   For older data add a dataset to the top-level element:
#
#     EVM(dataset: combined)
#
#     archive   full history
#     combined  archive + realtime in one result
#
#   Archive and combined need the historical data add-on:
#   https://bitquery.io/pricing
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-
# liquidity-api/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/

query MyQuery($token: String) {
  EVM {
    DEXPoolEvents(
      where: {TransactionStatus:{Success:true} any:[{PoolEvent: {Pool: {CurrencyA: {SmartContract: {is: $token}}}}},{PoolEvent: {Pool: {CurrencyB: {SmartContract: {is: $token}}}}}] }
    ) {
      PoolEvent {
        Dex {
          SmartContract
        }
        Liquidity {
          AmountCurrencyA(maximum: Block_Time)
          AmountCurrencyAInUSD(maximum: Block_Time)
          AmountCurrencyB(maximum: Block_Time)
          AmountCurrencyBInUSD(maximum: Block_Time)
        }
        Pool {
          CurrencyA {
            Name
            Symbol
            SmartContract
          }
          CurrencyB {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "token": "0x8eD97a637A790Be1feff5e888d43629dc05408F6"
}

Similar queries