ohlc price api for deviation calculation in native

Returns DEX trades by token on Solana, where currency mint address is GJmF68…pump, side currency mint address is So1111…1112 and trade price asymmetry is below 0.1, sorted by block timefield: block time, sum of trade amount and trade price.

By Kshitij Mahajan · saved 24 February 2026 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "GJmF68t5HXM1U1j2nE4Trvh7vH5XeXys7MW4UN5Bpump"}}, PriceAsymmetry: {lt: 0.1}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {since_relative: {hours_ago: 7}}}}
    ) {
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
      }
    }
  }
}

Similar queries