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

# PredictionEventBar

> Bar data for a prediction event at a single point in time. PredictionEventBar type reference: every field and its type.

## GraphQL

```
type PredictionEventBar {
  t: Int!
  volumeUsd: String!
  buyVolumeUsd: String
  sellVolumeUsd: String
  totalVolumeUsd: String!
  venueVolumeUsd: String
  volumeCollateralToken: String
  buyVolumeCollateralToken: String
  sellVolumeCollateralToken: String
  totalVolumeCollateralToken: String
  venueVolumeCollateralToken: String
  trades: Int!
  uniqueTraders: Int
  lastEventTimestamp: Int!
  liquidityUsd: PredictionEventBarOhlc
  liquidityCollateralToken: PredictionEventBarOhlc
  openInterestUsd: PredictionEventBarOhlc
  openInterestCollateralToken: PredictionEventBarOhlc
}

type PredictionEventBarOhlc {
  o: String!
  h: String!
  l: String!
  c: String!
}
```

### Used By

**Returned by**

* [onPredictionEventBarsUpdated](https://docs.codex.io/api-reference/subscriptions/onpredictioneventbarsupdated.md): Live-streamed bar chart data to track price changes over time for a prediction event.
* [predictionEventBars](https://docs.codex.io/api-reference/queries/predictioneventbars.md): Returns bar data for a prediction event.


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