> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dexploit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Token all-time-high price

> Per-mint all-time high across every pair the mint has traded in. Computed continuously via a `maxState(close) + argMaxState(timestamp, close) + argMaxState(pair_address, close)` Aggregating MV over `ohlcv_1d`. `ath_price_usd` is the SOL ATH multiplied by the current Pyth SOL/USD price — it's a today-equivalent USD value, not the USD price at the moment of the ATH.

Returns `ath_price_sol: null` (and the other ATH fields null) when the mint has no daily candles yet.



## OpenAPI

````yaml /api-reference/openapi.json get /tokens/{mint}/ath
openapi: 3.1.0
info:
  title: Dexploit API
  version: 1.0.0
  description: Real-time and historical Solana DEX swap and OHLCV data.
servers:
  - url: https://api.dexploit.dev
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
  - ApiKeyQuery: []
paths:
  /tokens/{mint}/ath:
    get:
      tags:
        - Tokens
      summary: Token all-time-high price
      description: >-
        Per-mint all-time high across every pair the mint has traded in.
        Computed continuously via a `maxState(close) + argMaxState(timestamp,
        close) + argMaxState(pair_address, close)` Aggregating MV over
        `ohlcv_1d`. `ath_price_usd` is the SOL ATH multiplied by the current
        Pyth SOL/USD price — it's a today-equivalent USD value, not the USD
        price at the moment of the ATH.


        Returns `ath_price_sol: null` (and the other ATH fields null) when the
        mint has no daily candles yet.
      operationId: getTokenAth
      parameters:
        - name: mint
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ATH
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AthResponse'
        '400':
          description: Mint is not a valid base58 string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    AthResponse:
      type: object
      description: >-
        Per-mint all-time high. All ATH fields are nullable — they're null when
        the mint has no daily candles in `ohlcv_1d` yet.
      properties:
        mint:
          type: string
        ath_price_sol:
          type:
            - number
            - 'null'
          description: ATH close (SOL per token, decimals-adjusted).
        ath_price_usd:
          type:
            - number
            - 'null'
          description: >-
            `ath_price_sol × current Pyth SOL/USD`. Today-equivalent USD value,
            not the USD price at the moment of the ATH.
        ath_ts_ms:
          type:
            - integer
            - 'null'
          format: int64
          description: Unix epoch milliseconds when the ATH occurred.
        ath_pair_address:
          type:
            - string
            - 'null'
          description: Pair where the ATH candle was observed.
        computed_at:
          type: integer
          format: int64
          description: Unix epoch milliseconds.
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_PARAM
            message:
              type: string
              example: >-
                use pair_address; see /api/v1/pairs?token_address=X to discover
                pools
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Preferred for swaps-api endpoints (`/swaps/*`, `/stats/*`, `/trending`,
        `/pool-events`).
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required by the OHLCV endpoints (`/api/v1/*`) and accepted by every
        other endpoint. Send `Authorization: Bearer ohlcv_live_sk_<your_key>`.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: >-
        Browser-friendly alternative to the Bearer header — accepted by every
        endpoint and required for WebSocket from the browser.

````