liq
Returns 100 prediction trades on Polygon, sorted by sum buy and sell, highest first: question ID, image, title, label, outcome ID, block time, sum of trade outcome trade collateral amount and calculate.
What it returns
- question ID
- image
- title
- label
- outcome ID
- block time
- sum of trade outcome trade collateral amount
- calculate
The query
query pairs {
EVM(network: matic) {
PredictionTrades(
where: {TransactionStatus: {Success: true}}
limit: {count: 100}
orderBy: {descendingByField: "sumBuyAndSell"}
) {
Trade {
Prediction {
Question {
Id
Image
Title
}
Outcome{Label Id}
}
}
Block {
from: Time(minimum: Block_Time)
till: Time(maximum: Block_Time)
}
buy: sum(
of: Trade_OutcomeTrade_CollateralAmount
if: {Trade: {OutcomeTrade: {IsOutcomeBuy: true}}}
)
sell: sum(
of: Trade_OutcomeTrade_CollateralAmount
if: {Trade: {OutcomeTrade: {IsOutcomeBuy: false}}}
)
sumBuyAndSell: calculate(expression: "$buy + $sell")
}
}
}
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