bsc token ohlcv

Returns the latest 180 DEX trades by token on BNB Chain, where currency smart contract is 0x144c…4444: block time, sum of trade amount, sum of trade side amount in USD, trade price, price in USD, currency name, currency symbol and 5 more fields.

By gaurav · saved 14 April 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: bsc) {
    DEXTradeByTokens(
      
      orderBy: { descendingByField: "Block_Timefield" }
      where: {
        Trade: {
          Currency: {
            SmartContract: { is: "0x144c7cb5f89aeb1d5c67c89a31fe18dac8004444" }
          }
          
        }
        Block: {
          Time: {
           since_relative:{months_ago:6}
          }
        }
      }
      limit: { count: 180 }
    ) {
      Block {
        Timefield: Time(interval: { in: minutes, count: 1 })
      }
      volume: sum(of: Trade_Amount)
      volumeUSD: sum(of: Trade_Side_AmountInUSD, selectWhere: { gt: "0" })
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
        highUSD: PriceInUSD(maximum: Trade_PriceInUSD)
        lowUSD: PriceInUSD(minimum: Trade_PriceInUSD)
        openUSD: PriceInUSD(minimum: Block_Number)
        closeUSD: PriceInUSD(maximum: Block_Number)
        Currency {
          Name
          Symbol
          SmartContract
        }
        Side {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      count
    }
  }
}

Similar queries