price by id in hour

Returns 100 prediction trades on Polygon, where outcome ID is 209393…1424: question ID, image, title, label, outcome ID, smart contract, asset ID and 5 more fields.

By Nadia · saved 17 February 2026 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query pairs {
  EVM(network: matic) {
    PredictionTrades(
      where: {TransactionStatus: {Success: true}, Trade: {OutcomeTrade: {}, Prediction: {Outcome: {Id: {eq: "20939351535690701474621316837957321939118947084394902825750156021315806001424"}}}}}
      limit: {count: 100}
    ) {
      Trade {
        Prediction {
          Question {
            Id
            Image
            Title
          }
          Outcome {
            Label
            Id
          }
          OutcomeToken {
            SmartContract
            AssetId
            Symbol
          }
        }
      }
      Block {
        Time(interval:{in:hours})
      }
      token: sum(of: Trade_OutcomeTrade_CollateralAmount)
      colleta: sum(of: Trade_OutcomeTrade_Amount)
      price: calculate(expression: "$colleta / $token")
    }
  }
}

Similar queries