Returns
Arguments
Example Query
Test this query in the Explorer →Usage Guidelines
Bar data provides time-series aggregates for individual trader activity. Each bar represents a time period and tracks trading behavior, volume, profit/loss, and market participation for a specific trader. Key characteristics:- Trader ID format: The
traderIdformat is<address>:<protocol>(e.g.,0x742d35cc6634c0532925a3b844bc9e7595f0beb6:Polymarket) - Trading activity metrics: Count trades, buys, sells, and unique markets traded
- Volume tracking: Monitor trading volume in both USD and collateral tokens (CT)
- Performance analysis: Track realized PnL (profit and loss) and cumulative performance
- Win/loss tracking: Count profitable vs unprofitable positions resolved during the period
- Time-series format: Each bar has a timestamp (
t) representing the period start - Coarser resolutions: Available in hourly, 4-hour, daily, and weekly intervals (no minute-level data)
Troubleshooting Tips
Why are minute-level resolutions not available?
Why are minute-level resolutions not available?
What's the difference between realizedPnlUsd and cumulativeRealizedPnlUsd?
What's the difference between realizedPnlUsd and cumulativeRealizedPnlUsd?
realizedPnlUsd: Profit/loss from positions that were opened AND closed during this specific bar periodcumulativeRealizedPnlUsd: Total all-time realized PnL as of the end of this bar
How are wins and losses calculated?
How are wins and losses calculated?
wins: Positions closed at a profitlosses: Positions closed at a loss
Why might volumeUsd and volumeCT have different values?
Why might volumeUsd and volumeCT have different values?
- Exchange rate fluctuations if the collateral token isn’t a stablecoin
- Timing differences in data collection
- Different calculation methodologies at the venue level
What does uniqueMarkets count?
What does uniqueMarkets count?
Why are some bars showing zero wins and losses despite having trades?
Why are some bars showing zero wins and losses despite having trades?
How should I calculate a trader's win rate?
How should I calculate a trader's win rate?
wins / (wins + losses). Only calculate this when (wins + losses) > 0 to avoid division by zero. Note that win rate doesn’t account for position sizing - a trader could have a high win rate but negative PnL if their losses are larger than their wins.Related Recipes
- Prediction Traders: Chart cumulative P&L, volume, and win/loss over time for trader profiles