liq

Returns 100 prediction trades on Polygon, sorted by sum buy and sell, highest first: question ID, image, title, block time, sum of trade outcome trade collateral amount and calculate.

By Nadia · saved 17 February 2026 · run 1 time · Bitquery API v2

What it returns

The query

query pairs {
  EVM(network: matic) {
    PredictionTrades(
      where: {TransactionStatus: {Success: true}}
      limit: {count: 100}
      orderBy: {descendingByField: "sumBuyAndSell"}
    ) {
      Trade {
        Prediction {
          Question {
            Id
            Image
            Title
          }
        }
      }
      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