TRX/USDT trade volume on BNB

Returns the latest DEX trades on BNB Chain, where sell currency smart contract is 0x55d3…7955, buy currency smart contract is 0x85ea…4d5b and block date is 2023-08-16: block date, sell currency symbol, buy currency symbol, sum of trade sell amount, sum of trade buy amount and count.

By Divyasshree N · saved 17 August 2023 · Bitquery API v2

What it returns

Filters

The query

query pair {
  EVM(network: bsc, dataset: combined) {
    sell: DEXTrades(
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}}, Buy: {Currency: {SmartContract: {is: "0x85eac5ac2f758618dfa09bdbe0cf174e7d574d5b"}}}}, Block: {Date: {in: "2023-08-16"}}}
      orderBy: {descending: Block_Date}
    ) {
      Block {
        Date
      }
      Trade {
        Sell {
          Currency {
            Symbol
          }
        }
        Buy {
          Currency {
            Symbol
          }
        }
      }
      sell: sum(of: Trade_Sell_Amount)
      buy: sum(of: Trade_Buy_Amount)
      count
    }
  }
}

Similar queries