24h volume and total trxns

Returns DEX trades by token on BNB Chain, where DEX smart contract is 0x31b5…21A2, side currency smart contract is 0xbb4C…095c and block time since 2025-05-12: unique of transaction hash and sum of trade side amount in USD.

By gaurav · saved 13 May 2025 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: bsc, dataset: combined) {
    DEXTradeByTokens(
      where: {TransactionStatus: {Success: true}, Block: {Time: {since: "2025-05-12T07:50:00Z"}}, Trade: {Dex: {SmartContract: {is: "0x31b50D6ce9e36C1206Cc2A55d54f0BE05C6E21A2"}}, Side: {Currency: {SmartContract: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}}}}}
    ) {
      total_Txns: uniq(of: Transaction_Hash)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries