Polymarket-game-volume-by-outcome

Returns prediction trades on Polygon, where question market ID is 2465018: title, market ID, image, resolution source, label, sum of trade outcome trade collateral amount in USD and count.

By Divyasshree · saved 8 June 2026 · Bitquery API v2

What it returns

Filters

The query

query GameVolumeByOutcome {
  EVM(network: matic) {
    PredictionTrades(
      where: {
        Block: { Time: { since_relative: { hours_ago: 24 } } }
        Trade: {
          Prediction: { Question: { MarketId: { is: "2465018" } } }
        }
      }
    ) {
      Trade {
        Prediction {
          Question {
            Title
            MarketId
            Image
            ResolutionSource
          }
          Outcome {
            label0: Label(
              if: { Trade: { Prediction: { Outcome: { Index: { eq: 0 } } } } }
            )
            label1: Label(
              if: { Trade: { Prediction: { Outcome: { Index: { eq: 1 } } } } }
            )
          }
        }
      }
      outcome0_volume: sum(
        of: Trade_OutcomeTrade_CollateralAmountInUSD
        if: { Trade: { Prediction: { Outcome: { Index: { eq: 0 } } } } }
      )
      outcome1_volume: sum(
        of: Trade_OutcomeTrade_CollateralAmountInUSD
        if: { Trade: { Prediction: { Outcome: { Index: { eq: 1 } } } } }
      )
      total_volume: sum(of: Trade_OutcomeTrade_CollateralAmountInUSD)
      trades: count
    }
  }
}

Similar queries