where is label
Returns 100 prediction trades on Polygon, where block time since 2026-02-26, sorted by sum buy and sell, highest first: question ID, image, title, created at, asset ID, label, outcome trade price and 4 more fields.
What it returns
- question ID
- image
- title
- created at
- asset ID
- label
- outcome trade price
- sum of trade outcome trade collateral amount in USD
- calculate
- count
- block time
Filters
- block time since 2026-02-26
The query
query questionsByVolume($time_ago: DateTime) {
EVM(network: matic) {
PredictionTrades(
where: {TransactionStatus: {Success: true}, Block: {Time: {since: $time_ago}}}
limit: {count: 100}
orderBy: {descendingByField: "sumBuyAndSell"}
) {
Trade {
Prediction {
Question {
Id
Image
Title
CreatedAt
}
OutcomeToken {
assetId0: AssetId(if: {Trade: {Prediction: {Outcome: {Index: {eq: 0}}}}})
assetId1: AssetId(if: {Trade: {Prediction: {Outcome: {Index: {eq: 1}}}}})
}
Outcome {
label0: Label(if: {Trade: {Prediction: {Outcome: {Index: {eq: 0}}}}})
label1: Label(if: {Trade: {Prediction: {Outcome: {Index: {eq: 1}}}}})
}
}
OutcomeTrade {
price0: Price(
maximum: Block_Time
if: {Trade: {Prediction: {Outcome: {Index: {eq: 0}}}}}
)
price1: Price(
maximum: Block_Time
if: {Trade: {Prediction: {Outcome: {Index: {eq: 1}}}}}
)
}
}
buyUSD: sum(
of: Trade_OutcomeTrade_CollateralAmountInUSD
if: {Trade: {OutcomeTrade: {IsOutcomeBuy: true}}}
)
sellUSD: sum(
of: Trade_OutcomeTrade_CollateralAmountInUSD
if: {Trade: {OutcomeTrade: {IsOutcomeBuy: false}}}
)
sumBuyAndSell: calculate(expression: "$buyUSD + $sellUSD")
trades: count
buyers: count(distinct: Trade_OutcomeTrade_Buyer)
sellers: count(distinct: Trade_OutcomeTrade_Seller)
resolved: joinPredictionManagements(
join: left
Management_Prediction_Question_Id: Trade_Prediction_Question_Id
) {
Block {
Time(maximum: Block_Time, if: {Management: {EventType: {is: "Resolved"}}})
}
}
}
}
}
Variables
{
"time_ago": "2026-02-26T10:06:14Z"
}
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