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

<div data-generated>
  ## 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](/api-reference/subscriptions/onpredictioneventbarsupdated.md): Live-streamed bar chart data to track price changes over time for a prediction event.
  * [predictionEventBars](/api-reference/queries/predictioneventbars.md): Returns bar data for a prediction event.
</div>
