top 10 winners of a market question
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
- holder
- sum of settlement amounts amount
Filters
- settlement event type is Redemption
- question title is Bitcoin Up or Down - February 17, 3:00AM-3:15AM ET
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/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/examples/polymarket-api/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
query MyQuery {
EVM(network: matic) {
PredictionSettlements(
limit: {count: 10}
orderBy: {descendingByField: "redeemed_amount"}
where: {Block: {Time: {since_relative: {hours_ago: 1}}}, Settlement: {EventType: {is: "Redemption"}, Prediction: {Question: {Title: {is: "Bitcoin Up or Down - February 17, 3:00AM-3:15AM ET"}}}}}
) {
Settlement {
Holder
}
redeemed_amount: sum(of: Settlement_Amounts_Amount)
}
}
}
Similar queries
- Polymarket market redemptions and payouts · Polygon · PredictionSettlements
- Polymarket Payouts Received by a Wallet · Polygon · PredictionSettlements
- top 10 redeemers · Polygon · PredictionSettlements
- top 10 market questions in last 1 hour · Polygon · PredictionSettlements
- latest whale settlements on prediction market · Polygon · PredictionSettlements