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

# PredictionEventTopMarket

> A top market for a prediction event. Reference for the PredictionEventTopMarket type in the Codex API: every field, its type, and the operations that return it.

## GraphQL

```
type PredictionEventTopMarket {
  marketId: String!
  label: String!
  outcome0Label: String!
  outcome1Label: String!
  outcome0BidCT: String!
  outcome0BidUSD: String!
  outcome0AskCT: String!
  outcome0AskUSD: String!
  outcome1BidCT: String!
  outcome1BidUSD: String!
  outcome1AskCT: String!
  outcome1AskUSD: String!
  volumeCT1d: String!
  volumeUSD1d: String!
  volumeCT1w: String!
  volumeUSD1w: String!
  volumeCTAll: String!
  volumeUSDAll: String!
  thumbUrl: String
  role: PredictionMarketRole
  suggestedLabel: String
  countryCode: String
}

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

### Used By

**Returned by**

* [filterPredictionEvents](https://docs.codex.io/api-reference/queries/filterpredictionevents.md): Filters prediction events using optional text, IDs, and ranking criteria.


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