Solana SOL/USDC 1-Minute OHLC with DEXTradeByTokens

One-minute open, high, low and close prices and USD volume for SOL against USDC on Solana over the last 10 minutes, using Price(maximum) and Price(minimum) on the DEXTradeByTokens cube.

By Divyasshree · saved 20 November 2026 · Bitquery API v2

What it returns

Filters

The query

query {
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descendingByField: "Block_Timefield"}
      where: {
        Trade: {
          Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}
          Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}
        }
        Block: {Time: {since_relative: {minutes_ago: 10}}}
      }
    ) {
      Block { Timefield: Time(interval: {in: minutes, count: 1}) }
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
      }
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries