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

# PredictionOutcomeRankingAttribute

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

## GraphQL

```
enum PredictionOutcomeRankingAttribute {
  bestBidUsd
  bestAskUsd
  spreadUsd
  lastPriceUsd
  bestBidCT
  bestAskCT
  spreadCT
  lastPriceCT
  liquidityUsd
  liquidityCT
  twoPercentAskDepthUsd
  twoPercentBidDepthUsd
  twoPercentAskDepthCT
  twoPercentBidDepthCT
  highPriceUsd5m
  highPriceUsd1h
  highPriceUsd4h
  highPriceUsd12h
  highPriceUsd24h
  highPriceUsd1w
  lowPriceUsd5m
  lowPriceUsd1h
  lowPriceUsd4h
  lowPriceUsd12h
  lowPriceUsd24h
  lowPriceUsd1w
  volumeUsd5m
  volumeUsd1h
  volumeUsd4h
  volumeUsd12h
  volumeUsd24h
  volumeUsd1w
  volumeChange5m
  volumeChange1h
  volumeChange4h
  volumeChange12h
  volumeChange24h
  volumeChange1w
  volumeShares5m
  volumeShares1h
  volumeShares4h
  volumeShares12h
  volumeShares24h
  volumeShares1w
  buyVolumeUsd5m
  buyVolumeUsd1h
  buyVolumeUsd4h
  buyVolumeUsd12h
  buyVolumeUsd24h
  buyVolumeUsd1w
  sellVolumeUsd5m
  sellVolumeUsd1h
  sellVolumeUsd4h
  sellVolumeUsd12h
  sellVolumeUsd24h
  sellVolumeUsd1w
  trades5m
  trades1h
  trades4h
  trades12h
  trades24h
  trades1w
  buys5m
  buys1h
  buys4h
  buys12h
  buys24h
  buys1w
  sells5m
  sells1h
  sells4h
  sells12h
  sells24h
  sells1w
  tradesChange5m
  tradesChange1h
  tradesChange4h
  tradesChange12h
  tradesChange24h
  tradesChange1w
  priceChange5m
  priceChange1h
  priceChange4h
  priceChange12h
  priceChange24h
  priceChange1w
  priceRange5m
  priceRange1h
  priceRange4h
  priceRange12h
  priceRange24h
  priceRange1w
}
```

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