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

# DetailedSubscriptionPredictionEventStats

> Payload for `onDetailedPredictionEventStatsUpdated`.

<div data-generated>
  ## GraphQL

  ```
  type DetailedSubscriptionPredictionEventStats {
    eventId: String!
    lastTransactionAt: Int!
    lifecycle: PredictionLifecycleStats!
    statsMin5: EnhancedWindowedPredictionEventStats
    statsHour1: EnhancedWindowedPredictionEventStats
    statsHour4: EnhancedWindowedPredictionEventStats
    statsHour12: EnhancedWindowedPredictionEventStats
    statsDay1: EnhancedWindowedPredictionEventStats
    statsWeek1: EnhancedWindowedPredictionEventStats
    trendingScores: DetailedPredictionStatsScores!
    relevanceScores: DetailedPredictionStatsScores!
    allTimeStats: PredictionEventAllTimeStats!
  }

  type PredictionLifecycleStats {
    ageSeconds: Int!
    expectedLifespanSeconds: Int
    timeToResolutionSeconds: Int
    isResolved: Boolean!
    winningOutcomeId: String
  }

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

  type WindowedPredictionEventCoreStats {
    volume: CurrencyValuePair!
    trades: Int!
  }

  type WindowedPredictionEventBuySellStats {
    buyVolume: CurrencyValuePair!
    sellVolume: CurrencyValuePair!
  }

  type WindowedPredictionEventUniqueTraderStats {
    uniqueTraders: Int!
  }

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

  type WindowedPredictionEventLiquidityStats {
    liquidity: CurrencyOHLC!
  }

  type WindowedPredictionEventOpenInterestStats {
    openInterest: CurrencyOHLC!
  }

  type WindowedPredictionEventChangeStats {
    volumeChange: Float!
    tradesChange: Float!
    buyVolumeChange: Float
    sellVolumeChange: Float
    uniqueTradersChange: Float
    liquidityChange: Float
    openInterestChange: Float
  }

  type PredictionEventWindowScores {
    trending: Float!
    relevance: Float!
    competitive: Float!
  }

  type WindowedPredictionAllTimeStats {
    volume: CurrencyValuePair!
    venueVolume: CurrencyValuePair
  }

  type EnhancedWindowedPredictionEventStats {
    start: Int!
    end: Int!
    lastTransactionAt: Int!
    core: WindowedPredictionEventCoreStats!
    buySell: WindowedPredictionEventBuySellStats
    uniqueTraders: WindowedPredictionEventUniqueTraderStats
    liquidity: WindowedPredictionEventLiquidityStats
    openInterest: WindowedPredictionEventOpenInterestStats
    statsChange: WindowedPredictionEventChangeStats!
    scores: PredictionEventWindowScores!
    allTimeStats: WindowedPredictionAllTimeStats!
  }

  type DetailedPredictionStatsScores {
    score5m: Float
    score1: Float
    score4: Float
    score12: Float
    score24: Float
    score1w: Float
  }

  type PredictionEventAllTimeStats {
    volume: CurrencyValuePair!
    venueVolume: CurrencyValuePair
  }
  ```

  ### Used By

  **Returned by**

  * [onDetailedPredictionEventStatsUpdated](/api-reference/subscriptions/ondetailedpredictioneventstatsupdated.md): Streams updated detailed stats for a specific prediction event.
</div>
