Volume trades with prices and counts and resolved

Returns 200 prediction trades on Polygon, where block time since 2026-02-24, sorted by sum buy and sell, highest first: question ID, image, title, created at, label, outcome trade price, sum of trade outcome trade collateral amount in USD and 3 more fields.

By Aleksey · saved 25 February 2026 · Bitquery API v2

What it returns

Filters

The query

query questionsByVolume($time_ago: DateTime) {
  EVM(network: matic) {
    
    PredictionTrades(
      where: {TransactionStatus: {Success: true}, Block: {Time: {since: $time_ago}}}
      limit: {count: 200}
      orderBy: {
      descendingByField: "sumBuyAndSell"}
    ) {
      Trade {
        
        Prediction {
          Question {
            Id
            Image
            Title
            CreatedAt
          }
          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){
        count(if: {Management: {EventType: {is: "Resolved"}}})
      }
      
    }
  }
}

Variables

{
  "time_ago": "2026-02-24T11:31:17Z"
}

Similar queries