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

# predictionOutcomeOrderBooks

> Returns live order books for a set of prediction outcomes, fetched from the venue's CLOB. Polymarket and Kalshi; outcomes from other venues will return null. Cached for up to 10s.

<Info>
  **Prediction Market data is currently in beta**. It is actively being worked on and improved, but may be unreliable. Polymarket and Kalshi data are live.

  At least for the time being, this endpoint requires a Growth or Enterprise plan. [Learn more](https://dashboard.codex.io/dashboard/billing?utm_source=codex\&utm_medium=docs\&utm_campaign=billing).
</Info>

<div data-generated>
  ## GraphQL

  ```
  type Query {
    # Requires a Growth or Enterprise plan.
    predictionOutcomeOrderBooks(
      outcomeIds: [String!]!
    ): [PredictionOutcomeOrderBook]!
  }

  enum PredictionProtocol {
    POLYMARKET
    KALSHI
  }

  type PredictionOrderBookLevel {
    price: Float!
    size: Float!
  }

  type PredictionOutcomeOrderBook {
    outcomeId: String!
    protocol: PredictionProtocol!
    venueOutcomeId: String!
    bids: [PredictionOrderBookLevel!]!
    asks: [PredictionOrderBookLevel!]!
    timestamp: Int!
    bookLiquidityUsd: String
    bookLiquidityCT: String
  }
  ```
</div>
