WBNB-USDT OHLC on BNB

Returns 10 DEX trades by token on BNB Chain, where currency smart contract is 0x55d3…7955, side currency smart contract is 0xbb4c…095c and side type is buy, sorted by block testfield, highest first: block time, sum of trade amount, trade price and count.

By Divyasshree · saved 2 October 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: bsc, dataset: archive) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_testfield"}
      where: {Trade: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}, 
        Side: {Currency: {SmartContract: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}}, Type: {is: buy}}}}
      limit: {count: 10}
    ) {
      Block {
        testfield: Time(interval: {in: hours, count: 24})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
      count
    }
  }
}

Similar queries