token liquidiy of pools where token is CurrencyB

Returns DEX pool events, where currency b smart contract is 0x8eD9…08F6: smart contract, amount currency a, amount currency a in USD, amount currency b, amount currency b in USD, currency a name, currency a symbol and 2 more fields.

By Akshat · saved 20 February 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String) {
  EVM {
    DEXPoolEvents(
      where: {PoolEvent: {Pool: {CurrencyB: {SmartContract: {is: $token}}}}}
    ) {
      PoolEvent {
        Dex {
          SmartContract
        }
        Liquidity {
          AmountCurrencyA(maximum:Block_Time)
          AmountCurrencyAInUSD(maximum:Block_Time)
          AmountCurrencyB(
            maximum: Block_Time
            if: {PoolEvent: {Pool: {CurrencyB: {SmartContract: {is: $token}}}}}
          )
          AmountCurrencyBInUSD(
            maximum: Block_Time
            if: {PoolEvent: {Pool: {CurrencyB: {SmartContract: {is: $token}}}}}
          )
          
        }
        Pool{
          CurrencyA{
            Name
            Symbol
            SmartContract
          }
          CurrencyB{
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "token": "0x8eD97a637A790Be1feff5e888d43629dc05408F6"
}

Similar queries