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.
What it returns
- block time
- outcome trade price
- sum of trade outcome trade collateral amount in USD
- count
Filters
- marketplace protocol name is polymarket
- outcome label is Yes
- question market ID is 6977205
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
}
}
}