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

# PredictionTokenBalance

> A wallet's token balance for a prediction market. PredictionTokenBalance type reference: every field and its type.

## GraphQL

```
type PredictionTokenBalance {
  walletAddress: String!
  amount: String!
  predictionTrader: PredictionTrader
}

enum PredictionProtocol {
  POLYMARKET
  KALSHI
}

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!
}
```

### Used By

**Returned by**

* [predictionTokenHolders](https://docs.codex.io/api-reference/queries/predictiontokenholders.md): Returns token holder balances for a prediction market.


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