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

# Get jetton OHLCV candlestick data

> Returns up to `limit` most recent non-empty OHLC candles of the requested
`interval` grain. Window is automatically widened: provider over-fetches,
filters empty candles (zero volume and flat OHLC), retries once if not
enough candles collected. Returns fewer than `limit` only if data is
genuinely scarce.




## OpenAPI

````yaml https://tokens.swap.coffee/api/v3/openapi.yaml get /api/v3/jettons/{address}/ohlcv-chart
openapi: 3.0.3
info:
  title: Tokens Service
  version: 3.0.0-beta
servers:
  - url: https://tokens.swap.coffee
  - url: http://localhost:8080
security:
  - {}
  - ApiKey: []
tags:
  - name: Accounts
  - name: Jettons
  - name: Labels
  - name: Contracts
paths:
  /api/v3/jettons/{address}/ohlcv-chart:
    get:
      tags:
        - Jettons
      summary: Get jetton OHLCV candlestick data
      description: >
        Returns up to `limit` most recent non-empty OHLC candles of the
        requested

        `interval` grain. Window is automatically widened: provider
        over-fetches,

        filters empty candles (zero volume and flat OHLC), retries once if not

        enough candles collected. Returns fewer than `limit` only if data is

        genuinely scarce.
      operationId: getJettonOhlcvChart
      parameters:
        - name: address
          in: path
          required: true
          description: The jetton master address
          schema:
            type: string
        - name: interval
          in: query
          required: true
          description: Candle grain (size of one candle)
          schema:
            type: string
            enum:
              - 1m
              - 5m
              - 15m
              - 30m
              - 1h
              - 4h
              - 6h
              - 12h
              - 1d
              - 24h
              - 1w
              - 7d
        - name: limit
          in: query
          required: false
          description: Desired number of non-empty candles (default 70, max 1000)
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 70
        - name: before
          in: query
          required: false
          description: Upper bound timestamp (exclusive), default now
          schema:
            type: string
            format: date-time
        - name: currency
          in: query
          required: false
          description: Currency for OHLC values
          schema:
            type: string
            enum:
              - usd
              - ton
            default: usd
      responses:
        '200':
          description: OHLCV data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiJettonOhlcvResponse'
        '400':
          description: Invalid interval/currency or no OHLCV data available for jetton
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        default:
          $ref: '#/components/responses/ApiError'
components:
  schemas:
    ApiJettonOhlcvResponse:
      type: object
      required:
        - candles
      properties:
        candles:
          type: array
          items:
            $ref: '#/components/schemas/ApiJettonOhlcvCandle'
          description: Array of OHLC candles sorted by time ascending
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: error description
    ApiJettonOhlcvCandle:
      type: object
      required:
        - time
        - open
        - high
        - low
        - close
      properties:
        time:
          type: string
          format: date-time
          description: Candle start time (ISO 8601)
          example: '2024-01-15T10:00:00Z'
        open:
          type: number
          format: double
          example: 1.234
        high:
          type: number
          format: double
          example: 1.245
        low:
          type: number
          format: double
          example: 1.221
        close:
          type: number
          format: double
          example: 1.24
        volume:
          type: number
          format: double
          nullable: true
          description: Trading volume (may be absent for some providers like DYOR)
          example: 12345.67
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````