volume and trades for a pancake token

Returns DEX trades by token on BNB Chain, where currency smart contract is 0x0e09…ce82 and DEX owner address is 0x0bfb…1865: currency name, currency symbol, smart contract, sum of trade side amount in USD, count, unique of trade buyer, unique of trade seller and 2 more fields.

By Kshitij Mahajan · saved 3 September 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($currency: String) {
  EVM(network: bsc) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: $currency}}, Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}, Success: true}, Block: {Time: {since_relative: {hours_ago: 24}}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          SmartContract
        }
      }
      volumer: sum(of: Trade_Side_AmountInUSD)
      trades: count
      buyers: uniq(of: Trade_Buyer,)
      sellers: uniq(of: Trade_Seller)
      volatility:standard_deviation(of: Trade_PriceInUSD)
      average_price: average(of: Trade_PriceInUSD)
    }
  }
}

Variables

{
  "currency": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
}

Similar queries