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

# WindowedPredictionMarketOpenInterestStats

> Market-level open interest OHLC data. WindowedPredictionMarketOpenInterestStats type reference: every field and its type.

## GraphQL

```
type WindowedPredictionMarketOpenInterestStats {
  openInterest: CurrencyOHLC!
}

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

type CurrencyOHLC {
  open: CurrencyValuePair!
  close: CurrencyValuePair!
  low: CurrencyValuePair!
  high: CurrencyValuePair!
}
```

### Used By

**Returned by**

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


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