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

# EnhancedWindowedPredictionTraderStats

> Enhanced stats for a prediction trader over a time window, including scores. EnhancedWindowedPredictionTraderStats type reference: every field and its type.

## GraphQL

```
type EnhancedWindowedPredictionTraderStats {
  start: Int!
  end: Int!
  lastTransactionAt: Int!
  statsCurrency: WindowedPredictionTraderCurrencyStats!
  statsNonCurrency: WindowedPredictionTraderNonCurrencyStats!
  statsChange: WindowedPredictionTraderChangeStats!
}

type WindowedPredictionTraderCurrencyStats {
  volumeUsd: String!
  buyVolumeUsd: String!
  sellVolumeUsd: String!
  volumeCT: String!
  buyVolumeCT: String!
  sellVolumeCT: String!
  realizedPnlUsd: String!
  realizedPnlCT: String!
  realizedProfitPercentage: Float!
  averageProfitUsdPerTrade: String!
  averageProfitCTPerTrade: String!
  averageSwapAmountUsd: String!
  averageSwapAmountCT: String!
  heldTokenAcquisitionCostUsd: String!
  heldTokenAcquisitionCostCT: String!
  soldTokenAcquisitionCostUsd: String!
  soldTokenAcquisitionCostCT: String!
}

type WindowedPredictionTraderNonCurrencyStats {
  trades: Int!
  buys: Int!
  sells: Int!
  uniqueMarkets: Int!
  wins: Int!
  losses: Int!
}

type WindowedPredictionTraderChangeStats {
  volumeChange: Float!
  buyVolumeChange: Float!
  sellVolumeChange: Float!
  realizedPnlChange: Float!
  tradesChange: Float!
  uniqueMarketsChange: Float!
  winsChange: Float!
  lossesChange: Float!
}
```

### Used By

**Returned by**

* [detailedPredictionTraderStats](https://docs.codex.io/api-reference/queries/detailedpredictiontraderstats.md): Returns windowed and all-time stats for a prediction trader.


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