pool-data

Returns balance updates on Ethereum, where balance update address is 0x7d67…5693: currency name, currency symbol, smart contract, sum of balance update amount and sum of balance update amount in USD.

By Kshitij Mahajan · saved 11 October 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network!, $poolAddress: String!) {
  EVM(network: $network) {
    BalanceUpdates(
      where: { BalanceUpdate: { Address: { is: $poolAddress } } }
    ) {
      Currency {
        Name
        Symbol
        SmartContract
      }
      sumNative: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })   # Liquidity in native currency (ETH)
      sumUSD: sum(of: BalanceUpdate_AmountInUSD)                            # Liquidity in USD
    }
  }
}

Variables

{
  "network": "eth",
  "poolAddress": "0x7d67cb39581d2e9ad492d6a95672848e95aa5693"
}

Similar queries