Copy of OHLC for a token on bsc

Returns DEX trades by token on BNB Chain, where currency smart contract is 0x9810…a408 and trade price asymmetry is below 0.1, sorted by block time: block time, price in USD and sum of trade side amount in USD.

By liwei chen · saved 21 October 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query tradingView($network: evm_network, $token: String) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, PriceAsymmetry: {lt: 0.1}}}
    ) {
      Block {
        Time(interval: {count: 1, in: days})
      }
      Trade {
        open: PriceInUSD(minimum: Block_Number)
        close: PriceInUSD(maximum: Block_Number)
        max: PriceInUSD(maximum: Trade_PriceInUSD)
        min: PriceInUSD(minimum: Trade_PriceInUSD)
      }
      volume: sum(of: Trade_Side_AmountInUSD, selectWhere: {gt: "0"})
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x9810681b9cc70e963b08f8a414f60a2bccc9a408"
}

Similar queries