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

# TokenOfInterest

> The token of interest within a pair. Can be `token0` or `token1`. Reference for the TokenOfInterest enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum TokenOfInterest {
  token0
  token1
}
```

### Used By

**Returned by**

* [getDetailedPairsStats](https://docs.codex.io/api-reference/queries/getdetailedpairsstats.md): Returns bucketed stats for a given token within a list of pairs.
* [getDetailedPairStats](https://docs.codex.io/api-reference/queries/getdetailedpairstats.md): Returns bucketed stats for a given token within a pair.
* [getDetailedStats](https://docs.codex.io/api-reference/queries/getdetailedstats.md) *(deprecated)*: Returns bucketed stats for a given token within a pair.
* [onDetailedStatsUpdated](https://docs.codex.io/api-reference/subscriptions/ondetailedstatsupdated.md): Live-streamed bucketed stats for a given token within a pair.

**Used as input by**

* [getDetailedPairsStats](https://docs.codex.io/api-reference/queries/getdetailedpairsstats.md): Returns bucketed stats for a given token within a list of pairs.
* [getDetailedPairStats](https://docs.codex.io/api-reference/queries/getdetailedpairstats.md): Returns bucketed stats for a given token within a pair.
* [getDetailedStats](https://docs.codex.io/api-reference/queries/getdetailedstats.md) *(deprecated)*: Returns bucketed stats for a given token within a pair.
* [onDetailedStatsUpdated](https://docs.codex.io/api-reference/subscriptions/ondetailedstatsupdated.md): Live-streamed bucketed stats for a given token within a pair.


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