total volume, outcome 1 volume, outcome 2 volume of a market
Returns prediction trades on Polygon, where outcome token asset ID is 467468…2095 or 707713…5889: title, resolution source, image, market ID, question ID, created at and sum of trade outcome trade collateral amount in USD.
What it returns
- title
- resolution source
- image
- market ID
- question ID
- created at
- sum of trade outcome trade collateral amount in USD
Filters
- outcome token asset ID is 467468…2095 or 707713…5889
The query
query MyQuery($marketAssets: [String!]){
EVM(network: matic) {
PredictionTrades(
where: {Block: {Time: {since_relative: {hours_ago: 1}}}, TransactionStatus: {Success: true}, Trade:{Prediction:{OutcomeToken:{AssetId:{in:$marketAssets}}}}
}
){
Trade{
Prediction{
Question {
Title
ResolutionSource
Image
MarketId
Id
CreatedAt
}
}
}
yes_volume:sum(of:Trade_OutcomeTrade_CollateralAmountInUSD if:{Trade:{Prediction:{Outcome:{Label:{is:"Yes"}}}}})
no_volume:sum(of:Trade_OutcomeTrade_CollateralAmountInUSD if:{Trade:{Prediction:{Outcome:{Label:{is:"No"}}}}})
total_volume: sum(of:Trade_OutcomeTrade_CollateralAmountInUSD)
}
}
}
Variables
{
"marketAssets": ["46746822541461330721074821991383617225657173789584499857683753079229786702095","70771354585365381988139008309072205730081182435161568795508496003376222185889"]
}
Similar queries
- Polymarket Volume by Exchange Contract and Collateral · Polygon · PredictionTrades
- latest prediction market trades · Polygon · PredictionTrades
- activity of user · Polygon · PredictionTrades
- Polymarket Notional Volume, Taker Volume,Maker Volume · Polygon · PredictionTrades
- buys and sells of a wallet on polymarket · Polygon · PredictionTrades