Documentation Index Fetch the complete documentation index at: https://docs.codex.io/llms.txt
Use this file to discover all available pages before exploring further.
Prediction Market data is currently in beta . It is actively being worked on and improved, but may be unreliable. Polymarket and Kalshi data are live.At least for the time being, this endpoint requires a Growth or Enterprise plan. Learn more .
Kalshi does not provide trader data . These endpoints only work with Polymarket data. Kalshi’s API does not expose individual trader information due to privacy considerations on their regulated exchange.
This endpoint requires a Growth or Enterprise plan. Learn more . Returns PredictionTraderFilterConnection
PredictionTraderFilterConnection
See PredictionTraderFilterConnection Total number of matching results.
results
[PredictionTraderFilterResult!]!
The list of results.
See PredictionTraderFilterResult Minimal trader info embedded in the result
See FilterTrader Labels applied to this entity.
Full trader entity (loaded via DataLoader)
See PredictionTrader The timestamp of the first trade.
The timestamp of the last trade.
The active markets count.
Labels applied to this entity.
The last update timestamp.
All-time total volume USD
All-time total profit USD
Profit per trade USD all-time
Volume per trade USD all-time
realizedProfitPercentage12h
Realized profit percentage 12h
realizedProfitPercentage24h
Realized profit percentage 24h
realizedProfitPercentage1w
Realized profit percentage 1w
realizedProfitPercentage1m
Realized profit percentage 1m
averageProfitUsdPerTrade12h
Average profit USD per trade 12h
averageProfitUsdPerTrade24h
Average profit USD per trade 24h
averageProfitUsdPerTrade1w
Average profit USD per trade 1w
averageProfitUsdPerTrade1m
Average profit USD per trade 1m
Average swap amount USD 12h
Average swap amount USD 24h
Average swap amount USD 1w
Average swap amount USD 1m
heldTokenAcquisitionCostUsd
Held token acquisition cost USD
heldTokenAcquisitionCostCT
Held token acquisition cost CT
Arguments A set of filters to apply.
See PredictionTraderFilters Filter by timestamp
See NumberFilter Greater than or equal to.
Filter by first trade timestamp
See NumberFilter Greater than or equal to.
Filter by last trade timestamp
See NumberFilter Greater than or equal to.
Filter by all-time total volume USD
See NumberFilter Greater than or equal to.
Filter by all-time total volume CT
See NumberFilter Greater than or equal to.
Filter by all-time total profit USD
See NumberFilter Greater than or equal to.
Filter by all-time total profit CT
See NumberFilter Greater than or equal to.
Filter by all-time total trades
See NumberFilter Greater than or equal to.
Filter by active markets count
See NumberFilter Greater than or equal to.
Filter by all-time PnL per volume
See NumberFilter Greater than or equal to.
Filter by profit per trade USD all-time
See NumberFilter Greater than or equal to.
Filter by volume per trade USD all-time
See NumberFilter Greater than or equal to.
Filter by biggest win USD
See NumberFilter Greater than or equal to.
Filter by biggest win CT
See NumberFilter Greater than or equal to.
Filter by biggest loss USD
See NumberFilter Greater than or equal to.
Filter by biggest loss CT
See NumberFilter Greater than or equal to.
Filter by volume USD 12h
See NumberFilter Greater than or equal to.
Filter by volume USD 24h
See NumberFilter Greater than or equal to.
Filter by volume USD 1w
See NumberFilter Greater than or equal to.
Filter by volume USD 1m
See NumberFilter Greater than or equal to.
Filter by volume change 12h
See NumberFilter Greater than or equal to.
Filter by volume change 24h
See NumberFilter Greater than or equal to.
Filter by volume change 1w
See NumberFilter Greater than or equal to.
Filter by volume change 1m
See NumberFilter Greater than or equal to.
Filter by realized PnL USD 12h
See NumberFilter Greater than or equal to.
Filter by realized PnL USD 24h
See NumberFilter Greater than or equal to.
Filter by realized PnL USD 1w
See NumberFilter Greater than or equal to.
Filter by realized PnL USD 1m
See NumberFilter Greater than or equal to.
realizedProfitPercentage12h
Filter by realized profit percentage 12h
See NumberFilter Greater than or equal to.
realizedProfitPercentage24h
Filter by realized profit percentage 24h
See NumberFilter Greater than or equal to.
realizedProfitPercentage1w
Filter by realized profit percentage 1w
See NumberFilter Greater than or equal to.
realizedProfitPercentage1m
Filter by realized profit percentage 1m
See NumberFilter Greater than or equal to.
Filter by realized PnL change 12h
See NumberFilter Greater than or equal to.
Filter by realized PnL change 24h
See NumberFilter Greater than or equal to.
Filter by realized PnL change 1w
See NumberFilter Greater than or equal to.
Filter by realized PnL change 1m
See NumberFilter Greater than or equal to.
Filter by trades 12h
See NumberFilter Greater than or equal to.
Filter by trades 24h
See NumberFilter Greater than or equal to.
Filter by trades 1w
See NumberFilter Greater than or equal to.
Filter by trades 1m
See NumberFilter Greater than or equal to.
Filter by unique markets 12h
See NumberFilter Greater than or equal to.
Filter by unique markets 24h
See NumberFilter Greater than or equal to.
Filter by unique markets 1w
See NumberFilter Greater than or equal to.
Filter by unique markets 1m
See NumberFilter Greater than or equal to.
Filter by wins 12h
See NumberFilter Greater than or equal to.
Filter by wins 24h
See NumberFilter Greater than or equal to.
Filter by losses 12h
See NumberFilter Greater than or equal to.
Filter by losses 24h
See NumberFilter Greater than or equal to.
Filter by losses 1w
See NumberFilter Greater than or equal to.
Filter by losses 1m
See NumberFilter Greater than or equal to.
Filter by win rate 12h
See NumberFilter Greater than or equal to.
Filter by win rate 24h
See NumberFilter Greater than or equal to.
Filter by win rate 1w
See NumberFilter Greater than or equal to.
Filter by win rate 1m
See NumberFilter Greater than or equal to.
averageProfitUsdPerTrade12h
Filter by average profit USD per trade 12h
See NumberFilter Greater than or equal to.
averageProfitUsdPerTrade24h
Filter by average profit USD per trade 24h
See NumberFilter Greater than or equal to.
averageProfitUsdPerTrade1w
Filter by average profit USD per trade 1w
See NumberFilter Greater than or equal to.
averageProfitUsdPerTrade1m
Filter by average profit USD per trade 1m
See NumberFilter Greater than or equal to.
Filter by average swap amount USD 12h
See NumberFilter Greater than or equal to.
Filter by average swap amount USD 24h
See NumberFilter Greater than or equal to.
Filter by average swap amount USD 1w
See NumberFilter Greater than or equal to.
Filter by average swap amount USD 1m
See NumberFilter Greater than or equal to.
heldTokenAcquisitionCostUsd
Filter by held token acquisition cost USD
See NumberFilter Greater than or equal to.
heldTokenAcquisitionCostCT
Filter by held token acquisition cost CT
See NumberFilter Greater than or equal to.
A phrase to search for. Can match trader alias, address, or venue ID.
A list of trader IDs to filter by.
A list of trader IDs to exclude from results.
rankings
[PredictionTraderRanking!]
A list of ranking attributes to apply.
See PredictionTraderRanking attribute
PredictionTraderRankingAttribute!
required
The attribute to rank by.
See PredictionTraderRankingAttribute REALIZED_PROFIT_PERCENTAGE_12H
REALIZED_PROFIT_PERCENTAGE_24H
REALIZED_PROFIT_PERCENTAGE_1W
REALIZED_PROFIT_PERCENTAGE_1M
AVERAGE_PROFIT_USD_PER_TRADE_12H
AVERAGE_PROFIT_USD_PER_TRADE_24H
AVERAGE_PROFIT_USD_PER_TRADE_1W
AVERAGE_PROFIT_USD_PER_TRADE_1M
AVERAGE_SWAP_AMOUNT_USD_12H
AVERAGE_SWAP_AMOUNT_USD_24H
AVERAGE_SWAP_AMOUNT_USD_1W
AVERAGE_SWAP_AMOUNT_USD_1M
HELD_TOKEN_ACQUISITION_COST_USD
HELD_TOKEN_ACQUISITION_COST_CT
The maximum number of results to return.
Where in the list the server should start when returning items.
Query Example
Top traders by 24h profit:
{
filterPredictionTraders (
rankings : [
{ attribute : REALIZED_PNL_USD_24H , direction : DESC }
]
filters : {
trades24h : { gt : 5 }
}
limit : 10
) {
count
page
results {
id
trader {
alias
primaryAddress
profileImageUrl
}
realizedPnlUsd24h
volumeUsd24h
trades24h
uniqueMarkets24h
winRate24h
averageProfitUsdPerTrade24h
totalVolumeUsdAll
totalProfitUsdAll
activeMarketsCount
}
}
}
Example Response (truncated)
{
"data" : {
"filterPredictionTraders" : {
"count" : 10 ,
"page" : 0 ,
"results" : [
{
"id" : "0x02227b8f5a9636e895607edd3185ed6ee5598ff7:Polymarket" ,
"trader" : {
"alias" : "HorizonSplendidView" ,
"primaryAddress" : null ,
"profileImageUrl" : null
},
"realizedPnlUsd24h" : "1959316" ,
"volumeUsd24h" : "6060346" ,
"trades24h" : 652 ,
"uniqueMarkets24h" : 1 ,
"winRate24h" : 1 ,
"averageProfitUsdPerTrade24h" : "3005.085439" ,
"totalVolumeUsdAll" : "21346770" ,
"totalProfitUsdAll" : "1710755" ,
"activeMarketsCount" : 3
},
// .. 9 more traders
]
}
}
}
Usage Guidelines
Trader ID format : <address>:<protocol> (e.g., 0x02227b8f5a9636e895607edd3185ed6ee5598ff7:Polymarket)
Response limit: 100 traders per request (configurable with limit parameter)
Use time-based metrics (12h, 24h, 1w, 1m) to analyze recent activity and trends
Use all-time metrics (totalProfitUsdAll, totalVolumeUsdAll) for historical performance
Filter by activeMarketsCount to find traders with current positions
Use phrase parameter to search by trader alias, address, or venue ID
Combine winRate and minimum trade filters to find consistently successful traders
Time windows: 12h (short-term), 24h (daily), 1w (weekly), 1m (monthly), All (lifetime)
Win Rate Interpretation
winRate fields show the percentage of profitable closed positions:
0.0 - 0.3 - Struggling or learning traders
0.3 - 0.5 - Below-average performance
0.5 - 0.6 - Average to good performance
0.6 - 0.8 - Strong performance (above market average)
0.8 - 1.0 - Exceptional (but verify sample size with trades filter)
Note: High win rates with low trade counts may be statistical noise. Always filter by minimum trades.
Troubleshooting Tips
What's the difference between totalProfitUsdAll and realizedPnlUsd24h?
totalProfitUsdAll is lifetime cumulative profit across all markets and all time. realizedPnlUsd24h is profit earned only in the last 24 hours. Use all-time for track records, use time-windowed for recent performance.
How do I identify skilled traders vs lucky ones?
Look for combination of: (1) High win rate (winRate1w > 0.6), (2) Significant volume (volumeUsd1w > 10000), (3) Many trades (trades1w > 50), (4) Good efficiency (pnlPerVolumeAll > 0.1). Single metrics can be misleading.
Why is winRate different from realizedProfitPercentage?
winRate counts the percentage of profitable positions (win/loss ratio). realizedProfitPercentage measures ROI (profit/capital ratio). You can have 90% win rate but low ROI if your losses are much larger than your wins.
What does pnlPerVolumeAll tell me?
This is profit efficiency - how much profit a trader extracts per dollar of volume traded. A value of 0.05 means 0.05 p r o f i t p e r 0.05 profit per 0.05 p ro f i tp er 1 traded (5% efficiency). Higher values indicate better market timing or edge. Values above 0.1 are exceptional.
Why are some trader aliases null?
Not all traders set public aliases. Use primaryAddress as the unique identifier. Some traders prefer to remain pseudonymous. Filter by isVerified: true to find traders with platform verification.