outcome volumes of a gold market in last 24 hours

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

By Akshat · saved 19 March 2026 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query MarketVolumeByOutcome {
  EVM(network: matic) {
    PredictionTrades(
      where: {
        Block: { Time: { since_relative: { days_ago: 24 } } }
        TransactionStatus: { Success: true }
        Trade: {
          Prediction: { Question:{MarketId: {is:"1606192"}}}
        }
      }
    ) {
      Trade {
        Prediction {
          Question {
            Title
            ResolutionSource
            Image
            MarketId
            Id
            CreatedAt
          }
        }
      }
      up_volume: sum(
        of: Trade_OutcomeTrade_CollateralAmountInUSD
        if: { Trade: { Prediction: { Outcome: { Label: { is: "Up" } } } } }
      )
      down_volume: sum(
        of: Trade_OutcomeTrade_CollateralAmountInUSD
        if: { Trade: { Prediction: { Outcome: { Label: { is: "Down" } } } } }
      )
      total_volume: sum(of: Trade_OutcomeTrade_CollateralAmountInUSD)
    }
  }
}

Similar queries