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

# TokenTopTradersRanking

> A ranking for top traders. Reference for the TokenTopTradersRanking input object in the Codex API: every field, its type, and the operations that accept it.

## GraphQL

```
input TokenTopTradersRanking {
  attribute: TokenTopTradersRankingAttribute!
  direction: RankingDirection!
}

enum TokenTopTradersRankingAttribute {
  realizedProfitUsd
  volumeUsd
}

enum RankingDirection {
  ASC
  DESC
}
```

### Used By

**Used as input by**

* [tokenTopTraders](https://docs.codex.io/api-reference/queries/tokentoptraders.md): Returns a list of top traders for a given token.


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