OHLC for a token without duplicates for DEX

Returns the latest 100 DEX trades by token on Solana, where currency mint address is 6hkS9Z…pump, side currency mint address is So1111…1112 and trade price asymmetry is below 0.1: block time, quantile of trade price in USD, median of trade price in USD and sum of trade side amount in USD.

By Divyasshree · saved 12 September 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      limit: {count: 100}
      orderBy: {descendingByField: "Block_Time"}
      where: {Trade: {Currency: {MintAddress: {is: "6hkS9ZbXianKW81rgFgAWvGefgmSee7kdBXMtfBipump"}}, PriceAsymmetry: {lt: 0.1}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Block {
        Time(interval: {count: 1, in: hours})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      close: median(of: Trade_PriceInUSD)
      open: median(of: Trade_PriceInUSD)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries