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

# PredictionTraderBarsInput

> Input type of `predictionTraderBars`. PredictionTraderBarsInput input object reference: every field and its type.

## GraphQL

```
input PredictionTraderBarsInput {
  traderId: String!
  from: Int!
  to: Int!
  resolution: PredictionTraderBarsResolution!
  countback: Int
  removeEmptyBars: Boolean
}

enum PredictionTraderBarsResolution {
  hour1
  hour4
  day1
  week1
}
```

### Used By

**Used as input by**

* [predictionTraderBars](https://docs.codex.io/api-reference/queries/predictiontraderbars.md): Returns bar data for a prediction trader over a time range.


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