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

# DetailedPredictionMarketStatsInput

> Input type of `detailedPredictionMarketStats`.

<div data-generated>
  ## GraphQL

  ```
  input DetailedPredictionMarketStatsInput {
    marketId: String!
    timestamp: Int
    durations: [PredictionStatsDuration!]
    bucketCount: Int
  }

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

  ### Used By

  **Used as input by**

  * [detailedPredictionMarketStats](/api-reference/queries/detailedpredictionmarketstats.md): Returns windowed and all-time stats for a prediction market.
</div>
