Polymarket history outcome price hourly candles

Hourly open, high, low and close price of the Yes outcome of one Polymarket market over the last 3 days.

By Divyasshree · saved 25 November 2026 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: realtime, network: matic) {
    PredictionTrades(
      where: {
        TransactionStatus: { Success: true }
        Block: { Time: { since_relative: { days_ago: 3 } } }
        Trade: {
          Prediction: {
            Marketplace: { ProtocolName: { is: "polymarket" } }
            Question: { MarketId: { is: "6977205" } }
            Outcome: { Label: { is: "Yes" } }
          }
        }
      }
      orderBy: { descending: Block_Time }
      limit: { count: 72 }
    ) {
      Block {
        Time(interval: { count: 1, in: hours })
      }
      Trade {
        OutcomeTrade {
          open: Price(minimum: Block_Time)
          high: Price(maximum: Trade_OutcomeTrade_Price)
          low: Price(minimum: Trade_OutcomeTrade_Price)
          close: Price(maximum: Block_Time)
        }
      }
      volume_usd: sum(of: Trade_OutcomeTrade_CollateralAmountInUSD)
      trades: count
    }
  }
}