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

# Get chart candles

> OHLCV candles built from every trade, oldest first, up to 2,000 bars. Each bar opens at the previous bar's close.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/tokens/{mint}/candles
openapi: 3.1.0
info:
  title: Veto API
  version: 1.0.0
  description: >-
    Public API behind veto.fun. Coins, payouts, wallets, launches, trades and
    vetoes.
servers:
  - url: https://api.veto.fun
    description: Production
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Platform
  - name: Coins
  - name: Payouts
  - name: Veto
  - name: Launch and trade
paths:
  /api/tokens/{mint}/candles:
    get:
      tags:
        - Coins
      summary: Get chart candles
      description: >-
        OHLCV candles built from every trade, oldest first, up to 2,000 bars.
        Each bar opens at the previous bar's close.
      operationId: getTokenCandles
      parameters:
        - $ref: '#/components/parameters/Mint'
        - name: res
          in: query
          description: Bar size. Minutes, or `1D` for one day.
          schema:
            type: string
            enum:
              - '1'
              - '5'
              - '15'
              - '60'
              - '240'
              - 1D
            default: '5'
        - name: metric
          in: query
          schema:
            type: string
            enum:
              - mcap
              - price
            default: mcap
        - name: unit
          in: query
          schema:
            type: string
            enum:
              - usd
              - sol
            default: usd
      responses:
        '200':
          description: Candles, oldest first.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Candle'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    Mint:
      name: mint
      in: path
      required: true
      description: The coin's mint address.
      schema:
        type: string
  schemas:
    Candle:
      type: object
      required:
        - time
        - open
        - high
        - low
        - close
        - volume
      properties:
        time:
          type: integer
          description: Bar start, unix milliseconds.
        open:
          type: number
        high:
          type: number
        low:
          type: number
        close:
          type: number
        volume:
          type: number
          description: Volume in the requested unit.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A message you can show to users as-is.
  responses:
    NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Token not found

````

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