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

# PredictionTraderBarsResponse

> Response returned by `predictionTraderBars`. PredictionTraderBarsResponse type reference: every field and its type.

## GraphQL

```
type PredictionTraderBarsResponse {
  traderId: String!
  trader: PredictionTrader
  bars: [PredictionTraderBar!]!
}

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

type PredictionTraderBar {
  t: Int!
  trades: Int
  buys: Int
  sells: Int
  uniqueMarkets: Int
  volumeUsd: String
  buyVolumeUsd: String
  sellVolumeUsd: String
  volumeCT: String
  buyVolumeCT: String
  sellVolumeCT: String
  wins: Int
  losses: Int
  realizedPnlUsd: String
  realizedPnlCT: String
  cumulativeRealizedPnlUsd: String
  cumulativeRealizedPnlCT: String
}
```

### Used By

**Returned by**

* [predictionTraderBars](https://docs.codex.io/api-reference/queries/predictiontraderbars.md): Returns bar data for a prediction trader over a time range.


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