Liquidity of multiple Pools

Returns the latest 2 DEX pool events on Ethereum, where pool smart contract is 0x540c…Fb5f or 0xA43f…Ec9f: block time, block number, ato b price, bto a price, smart contract, protocol name, amount currency a and 8 more fields.

By Akshat · saved 15 January 2026 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth) {
    DEXPoolEvents(
      limit: { count: 2 }
      limitBy:{by:PoolEvent_Pool_SmartContract count:1}
      orderBy: { descending: Block_Time }
      where: {
        PoolEvent: {
          Pool: {
            SmartContract: { in: ["0x540c57A187e8405df4522b3786B774cECbf2Fb5f","0xA43fe16908251ee70EF74718545e4FE6C5cCEc9f"] }
          }
        }
      }
    ) {
      Block {
        Time
        Number
      }
      PoolEvent {
        AtoBPrice
        BtoAPrice
        Dex {
          SmartContract
          ProtocolName
        }
        Liquidity {
          AmountCurrencyA
          AmountCurrencyB
        }
        Pool {
          CurrencyA {
            Name
            SmartContract
            Symbol
          }
          CurrencyB {
            Name
            SmartContract
            Symbol
          }
          PoolId
          SmartContract
        }
      }
      Transaction {
        Gas
        Hash
      }
    }
  }
}

Similar queries