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

# Get Market Candlesticks by Mint

> API reference for GET /api/v1/market/by-mint/{mint_address}/candlesticks

<Warning>
  There is a maximum of **5,000 candlesticks per request**. If your `startTs`, `endTs`, and `periodInterval` parameters would produce more than 5,000 results, the request will return a 400 error. Either narrow the time range or increase the period interval.
</Warning>


## OpenAPI

````yaml GET /api/v1/market/by-mint/{mint_address}/candlesticks
openapi: 3.1.0
info:
  title: prediction-markets-api
  description: API for prediction markets
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://dev-prediction-markets-api.dflow.net
security:
  - api_key: []
tags:
  - name: Candlesticks
    description: Market and event candlesticks relay endpoints
  - name: Events
    description: Event management endpoints
  - name: Markets
    description: Market management endpoints
  - name: Trades
    description: Trade history endpoints
  - name: Series
    description: Series template endpoints
  - name: Tags
    description: Tag and category endpoints
  - name: Sports
    description: Sports filtering endpoints
  - name: Live Data
    description: Live data relay endpoints
  - name: Orderbook
    description: Orderbook endpoints
  - name: Search
    description: Full-text search endpoints
paths:
  /api/v1/market/by-mint/{mint_address}/candlesticks:
    get:
      tags:
        - Candlesticks
      summary: Get market candlesticks by mint address
      description: |-
        Looks up the market ticker from a mint address, then fetches market
        candlesticks. Automatically resolves the series_ticker.
      operationId: market_candlesticks_by_mint
      parameters:
        - name: mint_address
          in: path
          description: Market mint address (ledger or outcome mint)
          required: true
          schema:
            type: string
        - name: startTs
          in: query
          description: Start timestamp (Unix timestamp in seconds, not milliseconds)
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: endTs
          in: query
          description: End timestamp (Unix timestamp in seconds, not milliseconds)
          required: true
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: periodInterval
          in: query
          description: Time period length of each candlestick in minutes (1, 60, or 1440)
          required: true
          schema:
            type: integer
            format: int32
            minimum: 0
      responses:
        '200':
          description: Market candlesticks retrieved successfully
          content:
            application/json:
              schema: {}
        '400':
          description: Bad request or invalid mint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Market not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - msg
        - code
      properties:
        code:
          type: string
        msg:
          type: string
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Contact hello@dflow.net to obtain an API
        key.

````