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

# RankingDirection

> The order of ranking.

<div data-generated>
  ## GraphQL

  ```
  enum RankingDirection {
    ASC
    DESC
  }
  ```

  ### Used By

  **Used as input by**

  * [balances](/api-reference/queries/balances.md): Returns list of token balances that a wallet has.
  * [categoryTokens](/api-reference/queries/categorytokens.md)
  * [eventScopedFilterPredictionMarkets](/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.
  * [filterExchanges](/api-reference/queries/filterexchanges.md): Returns a list of exchanges based on a variety of filters.
  * [filterNetworkWallets](/api-reference/queries/filternetworkwallets.md) *(deprecated)*: Returns a list of wallets with stats narrowed down to a specific network.
  * [filterPairs](/api-reference/queries/filterpairs.md): Returns a list of pairs based on a variety of filters.
  * [filterPredictionEvents](/api-reference/queries/filterpredictionevents.md): Filters prediction events using optional text, IDs, and ranking criteria.
  * [filterPredictionMarkets](/api-reference/queries/filterpredictionmarkets.md): Filters prediction markets using optional text, IDs, event constraints, and ranking criteria.
  * [filterPredictionTraderMarkets](/api-reference/queries/filterpredictiontradermarkets.md): Filters trader-market records using trader, market, event, and ranking criteria.
  * [filterPredictionTraders](/api-reference/queries/filterpredictiontraders.md): Filters prediction traders using optional text, IDs, and ranking criteria.
  * [filterTokens](/api-reference/queries/filtertokens.md): Discover, screen, and rank tokens across every supported network using 100+ on-chain signals: trading activity, liquidity, holder behavior, fee economics, and launchpad lifecycle.
  * [filterTokenWallets](/api-reference/queries/filtertokenwallets.md): Returns a list of wallets with stats narrowed down to a specific token.
  * [filterWallets](/api-reference/queries/filterwallets.md): Returns a list of wallets based on a variety of filters.
  * [getEventLabels](/api-reference/queries/geteventlabels.md): Returns a list of event labels for a pair.
  * [getTokenEvents](/api-reference/queries/gettokenevents.md): Returns transactions for a pair.
  * [getTokenEventsForMaker](/api-reference/queries/gettokeneventsformaker.md): Returns a list of token events for a given maker (wallet address).
  * [holders](/api-reference/queries/holders.md): Returns list of wallets that hold a given token, ordered by holdings descending. Also has the unique count of holders for that token.
  * [onFilterTokensUpdated](/api-reference/subscriptions/onfiltertokensupdated.md): Live-streamed filter token updates for the current `filterTokens` result set.
  * [predictionEventTopMarketsBars](/api-reference/queries/predictioneventtopmarketsbars.md): Returns bar data for top markets inside a prediction event.
</div>
