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

# OnPredictionMarketBarsUpdatedResponse

> Payload for `onPredictionMarketBarsUpdated`. OnPredictionMarketBarsUpdatedResponse type reference: every field and its type.

## GraphQL

```
type OnPredictionMarketBarsUpdatedResponse {
  marketId: String!
  bars: PredictionMarketResolutionBarData!
}

type PredictionMarketBarOhlc {
  o: String!
  h: String!
  l: String!
  c: String!
}

type PredictionOutcomeBar {
  venueOutcomeId: String!
  trades: Int
  buys: Int
  sells: Int
  volumeShares: String
  buyVolumeShares: String
  sellVolumeShares: String
  volumeUsd: String
  buyVolumeUsd: String
  sellVolumeUsd: String
  volumeCollateralToken: String
  buyVolumeCollateralToken: String
  sellVolumeCollateralToken: String
  priceUsd: PredictionMarketBarOhlc
  priceCollateralToken: PredictionMarketBarOhlc
  liquidityUsd: PredictionMarketBarOhlc
  liquidityCollateralToken: PredictionMarketBarOhlc
  bidUsd: PredictionMarketBarOhlc
  bidCollateralToken: PredictionMarketBarOhlc
  askUsd: PredictionMarketBarOhlc
  askCollateralToken: PredictionMarketBarOhlc
  twoPercentBidDepthUsd: PredictionMarketBarOhlc
  twoPercentBidDepthCollateralToken: PredictionMarketBarOhlc
  twoPercentAskDepthUsd: PredictionMarketBarOhlc
  twoPercentAskDepthCollateralToken: PredictionMarketBarOhlc
}

type PredictionMarketBar {
  t: Int!
  volumeUsd: String
  volumeCollateralToken: String
  volumeShares: String
  uniqueTraders: Int
  lastEventTimestamp: Int
  trades: Int
  allTimeVolumeUsd: String
  allTimeVenueVolumeUsd: String
  allTimeVolumeCollateralToken: String
  allTimeVenueVolumeCollateralToken: String
  openInterestUsd: PredictionMarketBarOhlc
  outcome0: PredictionOutcomeBar
  outcome1: PredictionOutcomeBar
}

type PredictionMarketResolutionBarData {
  min1: PredictionMarketBar
  min5: PredictionMarketBar
  min15: PredictionMarketBar
  min30: PredictionMarketBar
  hour1: PredictionMarketBar
  hour4: PredictionMarketBar
  hour12: PredictionMarketBar
  day1: PredictionMarketBar
  week1: PredictionMarketBar
}
```

### Used By

**Returned by**

* [onPredictionMarketBarsUpdated](https://docs.codex.io/api-reference/subscriptions/onpredictionmarketbarsupdated.md): Live-streamed bar chart data to track price changes over time for a prediction market.


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