marketcap, total holders, metrics query

Returns one DEX trade by token on BNB Chain, where currency smart contract is 0x4444…5701, token address is 0x4444…5701 and market network is Binance Smart Chain, sorted by interval time start, highest first: block time, sum of trade side amount in USD, unique of balance update address, mean and calculate.

By Akshat · saved 24 October 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String!) {
  EVM(network: bsc) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      Block {
        createdAt:Time(minimum: Block_Time)
      }
      volume:sum(of:Trade_Side_AmountInUSD)
    }
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: $token}}}
    ){
      holders:uniq(of:BalanceUpdate_Address, selectWhere:{gt:"0"})
    }
  }
  marketCap: Trading {
    Pairs(
      where: {Interval: {Time: {Duration: {eq: 1}}}, Market: {Network: {is: "Binance Smart Chain"}}, Volume: {Usd: {gt: 5}}, Token: {Address: {is: $token}}}
      orderBy: {descending: Interval_Time_Start}
      limit: {count: 1}
    ) {
      Price {
        Average {
          Mean
        }
      }
      marketcap: calculate(expression: "Price_Average_Mean * 1000000000")
    }
  }
}

Variables

{
  "token": "0x44442202ff27ee2297c128d0c1ae43a0fbb35701"
}

Similar queries