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

# TokenTopTradersInput

> Input arguments for the `tokenTopTraders` query. TokenTopTradersInput input object reference: every field and its type.

## GraphQL

```
input TokenTopTradersInput {
  tokenAddress: String!
  networkId: Int!
  tradingPeriod: TradingPeriod!
  ranking: TokenTopTradersRanking
  limit: Int
  offset: Int
}

enum TradingPeriod {
  DAY
  WEEK
  MONTH
  YEAR
}

enum TokenTopTradersRankingAttribute {
  realizedProfitUsd
  volumeUsd
}

enum RankingDirection {
  ASC
  DESC
}

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

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