zeyou<>Bitquery metrics query

Returns one DEX trade by token on BNB Chain, where currency smart contract is 0x7cba…4444, token address is 0x7cba…4444 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 Kshitij Mahajan · saved 15 October 2025 · run 17 times · 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": "0x7cba07a06cb377050decad99ca66236a39bf4444"
}

Similar queries