trade_volume_bsc_pancakeswap

Returns DEX trades by token on BNB Chain, where currency smart contract is 0x0e09…ce82, DEX owner address is 0x0bfb…1865 and block time since 2025-02-12: currency name, currency symbol, smart contract, decimals and sum of trade side amount in USD.

By Divyasshree · saved 5 November 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: bsc) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}}, Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}}, TransactionStatus: {Success: true}, Block: {Time: {since: "2025-02-12T00:00:00Z"}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          SmartContract
          Decimals
        }
      }
      traded_volume_in_usd: sum(of: Trade_Side_AmountInUSD)
      sell_volume_in_usd: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      buy_volume_in_usd: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
    }
  }
}

Similar queries