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

# PredictionStatsDuration

> The duration used to request windowed prediction stats. Reference for the PredictionStatsDuration enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum PredictionStatsDuration {
  week1
  day1
  hour12
  hour4
  hour1
  min5
}
```

### Used By

**Used as input by**

* [detailedPredictionEventStats](https://docs.codex.io/api-reference/queries/detailedpredictioneventstats.md): Returns windowed and all-time stats for a prediction event.
* [detailedPredictionMarketStats](https://docs.codex.io/api-reference/queries/detailedpredictionmarketstats.md): Returns windowed and all-time stats for a prediction market.


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