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.
Returns
Arguments
Query Example
Query comprehensive performance statistics about a specific trader:Usage Guidelines
- Trader ID format:
<address>:<protocol>(e.g.,0x02227b8f5a9636e895607edd3185ed6ee5598ff7:Polymarket) - USD vs CT fields: USD values are denominated in dollars, CT values in Conditional Tokens. For USDC markets, these are typically 1:1
- Monetary precision: All monetary values returned as strings to maintain precision
- Timestamps: Unix timestamps in seconds (convert with
new Date(timestamp * 1000)) - Batch queries: Query up to 100 traders in a single request for leaderboards
- Linked addresses: Track traders using multiple wallets via
linkedAddressesfield
Troubleshooting
Why is a trader ID returning null or empty results?
Why is a trader ID returning null or empty results?
- The trader ID format matches the protocol (Ethereum address for Polymarket)
- The trader has actually made trades on the platform
- The trader ID hasn’t been mistyped (addresses are case-insensitive but must be valid hex)
What's the difference between USD and CT values?
What's the difference between USD and CT values?
- CT values represent the raw blockchain token amounts
- USD values are the dollar-equivalent at the time of trade
- In USDC markets, 1 CT = 1 USD
Why are some traders missing alias or profile information?
Why are some traders missing alias or profile information?
alias, profileImageUrl, and profileUrl are optional and may be null for traders who:- Haven’t created a profile
- Prefer to trade anonymously
- Are using the platform programmatically
primaryAddress and venueTraderId are always available as fallback identifiers.How do I interpret negative profit values?
How do I interpret negative profit values?
allTimeProfitUsd or allTimeProfitCT indicate the trader has net losses across all their resolved positions. This is calculated as:Total Profit = (Winnings from resolved positions) - (Total amount spent on positions)Note that this only includes resolved markets. Active positions are not factored into profit calculations until they settle.Why might totalVolumeUsd differ from totalVolumeCT?
Why might totalVolumeUsd differ from totalVolumeCT?
- Markets use different token denominations
- Currency conversion rates have changed over time
- The platform uses different pricing mechanisms
What does activeMarketsCount represent?
What does activeMarketsCount represent?
activeMarketsCount shows how many prediction markets the trader currently has open positions in. This number:- Only counts markets that haven’t resolved yet
- Includes any market where the trader holds conditional tokens
- Decreases when markets resolve or when the trader exits all positions
How frequently is trader data updated?
How frequently is trader data updated?
- There may be a 1-5 minute delay for data indexing
- Profit calculations update when markets resolve
- Profile information (alias, images) may take longer to sync if changed
totalTradesCount and totalVolumeUsd to be current within a few minutes of blockchain confirmation.