Solana SOL/USDC Daily OHLC with Quantiles, Last 7 Days

Daily price range, median open and close and volume for SOL against USDC on Solana over the last 7 days, using quantiles on DEXTradeByTokens with the combined dataset.

By Divyasshree · saved 20 November 2026 · Bitquery API v2

What it returns

Filters

The query

query TradesSolToken {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      limit:{count:10}
      orderBy: {descendingByField: "Block_Time"}
      where: {Block: {Date: {since_relative: {days_ago: 7}}}, Trade: {Amount: {gt: "0"}, Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Side: {Currency: {MintAddress: {in: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time(interval: {count: 1, in: days})
      }
      min: quantile(of: Trade_Price, level: 0.05)
      max: quantile(of: Trade_Price, level: 0.95)
      close: median(of: Trade_Price)
      open: median(of: Trade_Price)
      volume: sum(of: Trade_Side_Amount)
      Trade {
        Currency{
          Name
          Symbol
        }
        Side {
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries