Polymarket-sports-odds-movement-OHLC
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: matic, dataset: combined) archive full history combined archive + realtime in one result
What it returns
- block time
- price in USD
- outcome token name
- asset ID
- outcome ID
- label
Filters
- outcome label is FULL SENSE
- question market ID is 2465018
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: matic, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query OddsMovementOHLC {
EVM(network: matic) {
PredictionTrades(
limit: { count: 100 }
orderBy: { descendingByField: "Block_Interval" }
where: {
Trade: {
Prediction: {
Question: { MarketId: { is: "2465018" } }
Outcome: { Label: { is: "FULL SENSE" } }
}
}
}
) {
Block {
Interval: Time(interval: { count: 5, in: minutes })
}
Trade {
OutcomeTrade {
Open: PriceInUSD(minimum: Block_Time)
High: PriceInUSD(maximum: Trade_OutcomeTrade_PriceInUSD)
Low: PriceInUSD(minimum: Trade_OutcomeTrade_PriceInUSD)
Close: PriceInUSD(maximum: Block_Time)
}
Prediction {
OutcomeToken {
Name
AssetId
}
Outcome {
Id
Label
}
}
}
}
}
}
Similar queries
- Polymarket Volume by Exchange Contract and Collateral · Polygon · PredictionTrades
- latest prediction market trades · Polygon · PredictionTrades
- activity of user · Polygon · PredictionTrades
- Polymarket Notional Volume, Taker Volume,Maker Volume · Polygon · PredictionTrades
- buys and sells of a wallet on polymarket · Polygon · PredictionTrades