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.
What it returns
- count
- sum of trade outcome trade amount
- sum of trade outcome trade collateral amount
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
- 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