OHLC for a four meme token

Returns the latest 10 DEX trades by token on BNB Chain, where currency smart contract is 0x9b48…0d40, DEX protocol name is fourmeme_v1 and trade price asymmetry is below 0.1: block time, price in USD and sum of trade side amount in USD.

By gaurav · saved 1 July 2025 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query tradingView($network: evm_network, $token: String) {
  EVM(network: $network dataset:combined) {
    DEXTradeByTokens(
      limit:{count:10}
      orderBy: {descendingByField: "Block_Time"}
      where: {Trade: {Currency: {SmartContract: {is: $token}}, PriceAsymmetry: {lt: 0.1}, Dex: {ProtocolName: {is: "fourmeme_v1"}}}}
    ) {
      Block {
        Time(interval: {count: 5, in: minutes})
      }
      Trade {
        open: PriceInUSD(minimum: Block_Number)
        close: PriceInUSD(maximum: Block_Number)
        max: PriceInUSD(maximum: Trade_PriceInUSD)
        min: PriceInUSD(minimum: Trade_PriceInUSD)
      }
      volumeUSD: sum(of: Trade_Side_AmountInUSD, selectWhere: {gt: "0"})
    }
  }
}

Variables

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

Similar queries