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

# WalletTokenRanking

> A wallet ranking on a specific token. WalletTokenRanking input object reference: every field and its type.

## GraphQL

```
input WalletTokenRanking {
  attribute: WalletTokenRankingAttribute!
  direction: RankingDirection!
}

enum WalletTokenRankingAttribute {
  firstTransactionAt
  lastTransactionAt
  tokenAmountBought1d
  tokenAmountSold1d
  amountBoughtUsd1d
  amountSoldUsd1d
  realizedProfitUsd1d
  realizedProfitPercentage1d
  avgHoldPeriodSec1d
  buys1d
  sells1d
  tokenAmountBought1w
  tokenAmountSold1w
  amountBoughtUsd1w
  amountSoldUsd1w
  realizedProfitUsd1w
  realizedProfitPercentage1w
  avgHoldPeriodSec1w
  buys1w
  sells1w
  tokenAmountBought30d
  tokenAmountSold30d
  amountBoughtUsd30d
  amountSoldUsd30d
  realizedProfitUsd30d
  realizedProfitPercentage30d
  avgHoldPeriodSec30d
  buys30d
  sells30d
  tokenAmountBought1y
  tokenAmountSold1y
  amountBoughtUsd1y
  amountSoldUsd1y
  realizedProfitUsd1y
  realizedProfitPercentage1y
  avgHoldPeriodSec1y
  buys1y
  sells1y
  tokenBalance
  purchasedTokenBalance
  tokenAcquisitionCostUsd
  scammerScore
  botScore
}

enum RankingDirection {
  ASC
  DESC
}
```

### Used By

**Used as input by**

* [filterTokenWallets](https://docs.codex.io/api-reference/queries/filtertokenwallets.md): Returns a list of wallets with stats narrowed down to a specific token.


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