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

# PredictionOutcomeOrderBook

> A live order book snapshot for a single prediction outcome, sourced from the venue's CLOB. Polymarket and Kalshi; outcomes from other venues return no book. Cached for up to 10s.

<div data-generated>
  ## GraphQL

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

  enum PredictionProtocol {
    POLYMARKET
    KALSHI
  }

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

  ### Used By

  **Returned by**

  * [predictionOutcomeOrderBooks](/api-reference/queries/predictionoutcomeorderbooks.md): 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.
</div>
