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

# PredictionMarketClassification

> Structured per-market classification metadata. Replaces the legacy flat fields (`marketSubtype`, `marketRole`, `displayOrder`, `suggestedOrder`) with discriminated, typed sub-objects so clients don't have to re-parse subtype slugs.

## GraphQL

```
type PredictionMarketClassification {
  role: PredictionMarketRole!
  sortKey: Int
  segment: PredictionMarketSegment!
  entrant: PredictionMarketEntrant
  thresholdBucket: PredictionMarketThresholdBucket
  dateBucket: PredictionMarketDateBucket
  rawSubtype: String
}

enum PredictionMarketRole {
  MONEYLINE
  MONEYLINE_OUTCOME
  ENTRANT
  SPREAD
  TOTAL
  PROP
  THRESHOLD_BUCKET
  DATE_BUCKET
  EXOTIC
  OTHER
}

enum PredictionMarketSegmentType {
  STAT
  PERIOD
  NONE
}

enum PredictionMarketStatType {
  POINTS
  REBOUNDS
  ASSISTS
  THREES
  STEALS
  BLOCKS
  TURNOVERS
  FOULS
  DOUBLE_DOUBLE
  TRIPLE_DOUBLE
  FIRST_INNING_RUNS
}

type PredictionMarketSegment {
  type: PredictionMarketSegmentType!
  period: String
  stat: PredictionMarketStatType
  groupingKey: String!
  numberValue: Float
}

enum PredictionMarketEntrantKind {
  PERSON
  PLAYER
  TEAM
  COUNTRY
  COMPANY
  TOPIC
  TV_SHOW
  MOVIE
  SONG
  ALBUM
  OTHER
}

type PredictionMarketEntrant {
  kind: PredictionMarketEntrantKind!
  displayName: String!
  imageUrl: String
  countryCode: String
}

enum PredictionMarketLadderMetric {
  PRICE
  STOCK_PRICE
  FDV
  COMMODITY
  TEMPERATURE
  RATE_CHANGE_BPS
  ROTTEN_TOMATOES
  BOX_OFFICE
  TWEETS
  FOLLOWERS
  SUBSCRIBERS
  VIEWS
  LIKES
  POSTS
  OTHER
}

enum PredictionMarketLadderOperator {
  ABOVE
  BELOW
  EXACTLY
  BETWEEN
}

type PredictionMarketThresholdBucket {
  metric: PredictionMarketLadderMetric!
  operator: PredictionMarketLadderOperator!
  numericValue: Float
  lowerBound: Float
  upperBound: Float
}

enum PredictionMarketDateOperator {
  BEFORE
  AFTER
  ON
  BETWEEN
}

type PredictionMarketDateBucket {
  operator: PredictionMarketDateOperator!
  unixTimestamp: Int
  lowerTimestamp: Int
  upperTimestamp: Int
}
```

### Used By

**Returned by**

* [eventScopedFilterPredictionMarkets](https://docs.codex.io/api-reference/queries/eventscopedfilterpredictionmarkets.md): Filters prediction markets within a single event and returns structured classification metadata for each market. Use this instead of `filterPredictionMarkets` when you need entrant/segment/ladder details (country codes, period+stat grouping, parsed numeric/date rungs) without re-parsing labels client-side.
* [filterPredictionMarkets](https://docs.codex.io/api-reference/queries/filterpredictionmarkets.md): Filters prediction markets using optional text, IDs, event constraints, and ranking criteria.


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