Copy of OHLC for a token without duplicates

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

By Divyasshree · saved 12 September 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "BzcYdKm1ZJmzL4nD9cMAWr1DEbuuoDdjNMGLLcYHYW85"}}, PriceAsymmetry: {lt: 0.1}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      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)
      count
    }
  }
}

Similar queries