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

# TokenSparkline

> A sparkline for a token. Reference for the TokenSparkline type in the Codex API: every field, its type, and the operations that return it.

## GraphQL

```
type TokenSparkline {
  id: String!
  resolution: String!
  attribute: SparklineAttribute
  sparkline: [SparklineValue!]!
}

enum SparklineAttribute {
  PRICE
}

type SparklineValue {
  timestamp: Int!
  value: Float!
}
```

### Used By

**Returned by**

* [tokenSparklines](https://docs.codex.io/api-reference/queries/tokensparklines.md): Returns a list of token simple chart data (sparklines) for the given tokens.


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