trader stats for past 5 hours

Returns prediction trades on Polygon: count, sum of trade outcome trade amount and sum of trade outcome trade collateral amount.

By Kshitij Mahajan · saved 6 May 2026 · Bitquery API v2

What it returns

The query

query MyQuery($trader: String) {
  EVM(network: matic) {
    PredictionTrades(
      where: {
        TransactionStatus: { Success: true }
        any: [
          { Trade: { OutcomeTrade: { Buyer: { is: $trader } } } }
          { Trade: { OutcomeTrade: { Seller: { is: $trader } } } }
        ]
        Block: { Time: { since_relative: { hours_ago: 5 } } }
      }
    ) {
      Total_Outcomes_traded: count
      Total_Outcome_Amount: sum(of: Trade_OutcomeTrade_Amount)
      Total_Collateral_Amount: sum(of: Trade_OutcomeTrade_CollateralAmount)
      Total_Markets: count(distinct: Trade_Prediction_Question_MarketId)
    }
  }
}

Variables

{
  "trader": "0xddbf18be035f4781a39417a08755ea69b8fcb1ae"
}

Similar queries