Get recent user activity on polymarket
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": "0x101f2f96db1e39a9f36a1fa067751d541fd38e1a"
}
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