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

# EnhancedWindowedPredictionOutcomeStats

> Enhanced stats for a single outcome over a time window. EnhancedWindowedPredictionOutcomeStats type reference: every field and its type.

## GraphQL

```
type EnhancedWindowedPredictionOutcomeStats {
  core: WindowedPredictionOutcomeCoreStats!
  buySell: WindowedPredictionOutcomeBuySellStats
  liquidity: WindowedPredictionOutcomeLiquidityStats
  orderbook: WindowedPredictionOutcomeOrderbookStats
  depth: WindowedPredictionOutcomeDepthStats
  statsChange: WindowedPredictionOutcomeChangeStats!
}

type OutcomeVolumeStats {
  usd: String!
  ct: String!
  shares: String!
}

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

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

type WindowedPredictionOutcomeCoreStats {
  venueOutcomeId: String!
  trades: Int!
  volume: OutcomeVolumeStats!
  price: PriceOHLC!
}

type OutcomeBuySellVolumeStats {
  usd: String!
  ct: String!
  shares: String!
}

type WindowedPredictionOutcomeBuySellStats {
  buys: Int!
  sells: Int!
  buyVolume: OutcomeBuySellVolumeStats!
  sellVolume: OutcomeBuySellVolumeStats!
}

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

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

type WindowedPredictionOutcomeLiquidityStats {
  liquidity: CurrencyOHLC!
}

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

type WindowedPredictionOutcomeDepthStats {
  bidDepth: CurrencyOHLC!
  askDepth: CurrencyOHLC!
}

type WindowedPredictionOutcomeChangeStats {
  volumeChange: Float!
  volumeSharesChange: Float!
  priceChange: Float!
  tradesChange: Float!
  priceRange: Float!
  buysChange: Float
  sellsChange: Float
  liquidityChange: Float
}
```

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