Copy of 24h volume and total trxns

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

By Remach · saved 14 May 2025 · run 2 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"}, Date: {since: "2025-05-12"}}, Trade: {Dex: {SmartContract: {is: "0x31b50D6ce9e36C1206Cc2A55d54f0BE05C6E21A2"}}, Currency: {SmartContract: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}}}}
    ) {
      count
      volume: sum(of: Trade_AmountInUSD)
    }
  }
}

Similar queries