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

# PredictionMarketRankingAttribute

> The attribute used to rank prediction markets. Reference for the PredictionMarketRankingAttribute enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum PredictionMarketRankingAttribute {
  timestamp
  lastTransactionAt
  age
  createdAt
  expectedLifespan
  opensAt
  closesAt
  resolvesAt
  trendingScore5m
  trendingScore1h
  trendingScore4h
  trendingScore12h
  trendingScore24h
  trendingScore1w
  relevanceScore5m
  relevanceScore1h
  relevanceScore4h
  relevanceScore12h
  relevanceScore24h
  relevanceScore1w
  competitiveScore5m
  competitiveScore1h
  competitiveScore4h
  competitiveScore12h
  competitiveScore24h
  competitiveScore1w
  liquidityUsd
  liquidityCT
  liquidityChange5m
  liquidityChange1h
  liquidityChange4h
  liquidityChange12h
  liquidityChange24h
  liquidityChange1w
  openInterestUsd
  openInterestCT
  openInterestChange5m
  openInterestChange1h
  openInterestChange4h
  openInterestChange12h
  openInterestChange24h
  openInterestChange1w
  volumeUsd5m
  volumeUsd1h
  volumeUsd4h
  volumeUsd12h
  volumeUsd24h
  volumeUsd1w
  volumeUsdAll
  volumeCTAll
  venueVolumeUsd
  venueVolumeCT
  volumeChange5m
  volumeChange1h
  volumeChange4h
  volumeChange12h
  volumeChange24h
  volumeChange1w
  trades5m
  trades1h
  trades4h
  trades12h
  trades24h
  trades1w
  avgTradeSizeUsd5m
  avgTradeSizeUsd1h
  avgTradeSizeUsd4h
  avgTradeSizeUsd12h
  avgTradeSizeUsd24h
  avgTradeSizeUsd1w
  tradesChange5m
  tradesChange1h
  tradesChange4h
  tradesChange12h
  tradesChange24h
  tradesChange1w
  uniqueTraders5m
  uniqueTraders1h
  uniqueTraders4h
  uniqueTraders12h
  uniqueTraders24h
  uniqueTraders1w
  uniqueTradersChange5m
  uniqueTradersChange1h
  uniqueTradersChange4h
  uniqueTradersChange12h
  uniqueTradersChange24h
  uniqueTradersChange1w
  priceCompetitiveness
  volumeImbalance24h
  liquidityAsymmetry
  impliedProbabilitySum
  maxPriceRange5m
  maxPriceRange1h
  maxPriceRange4h
  maxPriceRange12h
  maxPriceRange24h
  maxPriceRange1w
  phraseScore
}
```

### Used By

**Used as input 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.
* [predictionEventTopMarketsBars](https://docs.codex.io/api-reference/queries/predictioneventtopmarketsbars.md): Returns bar data for top markets inside a prediction event.


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