> ## 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`. PredictionMarketBarsInput input object reference: every field and its type.

## 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](https://docs.codex.io/api-reference/queries/predictionmarketbars.md): Returns OHLC-style bar data for a prediction market.


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