> ## 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.

# PredictionTrader

> A prediction trader with aggregate stats and metadata. PredictionTrader type reference: every field and its type.

## GraphQL

```
type PredictionTrader {
  id: String!
  protocol: PredictionProtocol!
  venueTraderId: String!
  alias: String
  primaryAddress: String
  linkedAddresses: [String!]
  profileImageUrl: String
  profileUrl: String
  totalTradesCount: Int!
  totalVolumeUsd: String!
  totalVolumeCT: String!
  firstTradeTimestamp: Int!
  lastTradeTimestamp: Int!
  biggestWinUsd: String!
  biggestWinCT: String!
  biggestLossUsd: String!
  biggestLossCT: String!
  allTimeProfitUsd: String!
  allTimeProfitCT: String!
  activeMarketsCount: Int!
  labels: [String!]
  createdAt: Int!
  updatedAt: Int!
}

enum PredictionProtocol {
  POLYMARKET
  KALSHI
}
```

### Used By

**Returned by**

* [detailedPredictionTraderStats](https://docs.codex.io/api-reference/queries/detailedpredictiontraderstats.md): Returns windowed and all-time stats for a prediction trader.
* [filterPredictionTraderMarkets](https://docs.codex.io/api-reference/queries/filterpredictiontradermarkets.md): Filters trader-market records using trader, market, event, and ranking criteria.
* [filterPredictionTraders](https://docs.codex.io/api-reference/queries/filterpredictiontraders.md): Filters prediction traders using optional text, IDs, and ranking criteria.
* [predictionTokenHolders](https://docs.codex.io/api-reference/queries/predictiontokenholders.md): Returns token holder balances for a prediction market.
* [predictionTraderBars](https://docs.codex.io/api-reference/queries/predictiontraderbars.md): Returns bar data for a prediction trader over a time range.
* [predictionTraders](https://docs.codex.io/api-reference/queries/predictiontraders.md): Returns prediction traders by ID.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.