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

# WindowedPredictionOutcomeOrderbookStats

> Orderbook bid/ask OHLC data.

<div data-generated>
  ## GraphQL

  ```
  type WindowedPredictionOutcomeOrderbookStats {
    bid: PriceOHLC!
    ask: PriceOHLC!
  }

  type PriceValuePair {
    usd: String!
    ct: String!
  }

  type PriceOHLC {
    open: PriceValuePair!
    close: PriceValuePair!
    low: PriceValuePair!
    high: PriceValuePair!
  }
  ```

  ### Used By

  **Returned by**

  * [detailedPredictionMarketStats](/api-reference/queries/detailedpredictionmarketstats.md): Returns windowed and all-time stats for a prediction market.
  * [onDetailedPredictionMarketStatsUpdated](/api-reference/subscriptions/ondetailedpredictionmarketstatsupdated.md): Streams updated detailed stats for a specific prediction market.
</div>
