Skip to main content

Wallet & User Activity API

Get user- and wallet-level data for Polymarket: recent activity, positions, trade volume, and market counts. Use Bitquery GraphQL to analyze trader behavior by wallet address, and combine with the Polymarket API overview for trades and market data.

Recent user activity by wallet

Get aggregate stats for a trader over the last 5 hours: total outcomes traded, collateral amounts, and number of distinct markets.

Run query in IDE

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"
}

Replace trader with any Polygon wallet address (EOA or proxy wallet).


What you can get by wallet

DataSourceNotes
Recent activity & volumeBitquery (above)GraphQL PredictionTrades filtered by Buyer/Seller
Closed positionsPolymarket CLOBProfile API
User activity timelinePolymarket CLOBProfile API
Total value of positionsPolymarket CLOBProfile API
Trades for a user or marketPolymarket CLOBProfile API
Positions for a specific marketPolymarket CLOBProfile API
Public profile by walletPolymarket Gamma APIGET /public-profile?address=<wallet> (no auth)
Deposits & withdrawalsPolymarket Bridge APISupported assets, deposit/withdrawal addresses, transaction status

NeedAPI
Trades, prices, volumePolymarket API · Prediction Trades API
Filter by market slug, condition ID, tokenPolymarket Markets API
Settlements & redemptionsPrediction Settlements API
Market lifecycle & resolutionPrediction Market API
On-chain contracts & eventsMain Polymarket Contract (on-chain)

Support