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

# Get OHLCV Data for a token

> Gets OHLCV (Open, High, Low, Close, Volume) data for charts



## OpenAPI

````yaml /data-api/openapi.json get /chart/{token}
openapi: 3.1.0
info:
  title: Solana Tracker Data API
  description: >-
    Solana Tracker Data API for token prices, holders, trades, charts, wallet
    data, risk signals, and market analytics.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Production server
security:
  - apiKey: []
paths:
  /chart/{token}:
    get:
      tags:
        - Chart
      summary: Get OHLCV Data for a token
      description: Gets OHLCV (Open, High, Low, Close, Volume) data for charts
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
        - name: type
          in: query
          description: Time interval (e.g., '1s', '1m', '1h', '1d')
          schema:
            type: string
            enum:
              - 1s
              - 5s
              - 15s
              - 1m
              - 3m
              - 5m
              - 15m
              - 30m
              - 1h
              - 2h
              - 4h
              - 6h
              - 8h
              - 12h
              - 1d
              - 3d
              - 1w
              - 1mn
        - name: time_from
          in: query
          description: Start time (Unix timestamp in seconds)
          schema:
            type: integer
        - name: time_to
          in: query
          description: End time (Unix timestamp in seconds)
          schema:
            type: integer
        - name: marketCap
          in: query
          description: Return chart for market cap instead of pricing
          schema:
            type: boolean
            default: false
        - name: currency
          in: query
          description: Currency to return chart values in
          schema:
            type: string
            enum:
              - usd
              - sol
              - eur
            default: usd
        - name: removeOutliers
          in: query
          description: Set to false to disable outlier removal
          schema:
            type: boolean
            default: true
        - name: dynamicPools
          in: query
          description: >-
            Dynamically picks the main pool over time to create the best and
            most consistent chart
          schema:
            type: boolean
            default: true
        - name: timezone
          in: query
          description: Timezone for chart data (abbreviations or IANA identifiers)
          schema:
            type: string
        - name: fastCache
          in: query
          description: Enables a live cache on the chart API for even faster response times
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChartResponse'
components:
  schemas:
    ChartResponse:
      type: object
      properties:
        oclhv:
          type: array
          items:
            $ref: '#/components/schemas/OHLCV'
    OHLCV:
      type: object
      properties:
        open:
          type: number
        close:
          type: number
        low:
          type: number
        high:
          type: number
        volume:
          type: number
        time:
          type: integer
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````