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

# PredictionMarketBarsInput

> Input type of `predictionMarketBars`.

<div data-generated>
  ## GraphQL

  ```
  input PredictionMarketBarsInput {
    marketId: String!
    from: Int!
    to: Int!
    resolution: PredictionMarketBarsResolution!
    countback: Int
    removeEmptyBars: Boolean
  }

  enum PredictionMarketBarsResolution {
    min1
    min5
    min15
    min30
    hour1
    hour4
    hour12
    day1
    week1
  }
  ```

  ### Used By

  **Used as input by**

  * [predictionMarketBars](/api-reference/queries/predictionmarketbars.md): Returns OHLC-style bar data for a prediction market.
</div>
