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

# Get candlestick data

> Get candlestick data for a single security. Parameters follow CLI conventions: periods can be `1m`, `5m`, `15m`, `30m`, `1h`, `day`, `week`, `month`, or `year`; SDK numeric enums are also accepted.



## OpenAPI

````yaml /api-reference/openapi.json get /api/market-data/quote/{symbol}/candlestick
openapi: 3.1.0
info:
  title: Financial Context
  version: 1.0.0
  description: >-
    Financial Context exposes authenticated, metered access to read-only US
    stock market data. Use `/api/market-data/*` endpoints for `.US` symbols and
    `US` market filters across quotes, candlesticks, market calendars,
    fundamentals, news, screeners, and related analytics.
servers:
  - url: https://openapi.fcontext.com
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
tags:
  - name: Quote
    description: >-
      Quotes, candlesticks, trading days, depth, broker queue, and other
      market-data endpoints.
  - name: Content
    description: 'Security content: news and topics.'
  - name: Market
    description: Market status, trading calendars, unusual activity, and rankings.
  - name: Calendar
    description: Financial event calendar.
  - name: Fundamental
    description: >-
      Fundamentals, analyst ratings, valuation, shareholders, and trading
      disclosures.
  - name: Screener
    description: Screening strategies, filters, and indicators.
paths:
  /api/market-data/quote/{symbol}/candlestick:
    get:
      tags:
        - Quote
      summary: Get candlestick data
      description: >-
        Get candlestick data for a single security. Parameters follow CLI
        conventions: periods can be `1m`, `5m`, `15m`, `30m`, `1h`, `day`,
        `week`, `month`, or `year`; SDK numeric enums are also accepted.
      parameters:
        - name: symbol
          in: path
          required: true
          description: Security symbol, for example `AAPL.US`.
          schema:
            type: string
          example: AAPL.US
        - name: period
          in: query
          required: false
          description: >-
            Candlestick period, default `day`. Supports `1m`, `5m`, `15m`,
            `30m`, `1h`, `day`, `week`, `month`, and `year`; SDK numeric enums
            are also accepted.
          schema:
            type: string
            default: day
          example: day
        - name: count
          in: query
          required: false
          description: Number of candlesticks to return, default 100.
          schema:
            type: integer
            default: 100
            minimum: 1
          example: 100
        - name: adjust
          in: query
          required: false
          description: >-
            Adjustment type: `none` for no adjustment (default), `forward` for
            forward-adjusted data; `adjust_type=0|1` is also accepted.
          schema:
            type: string
          example: none
        - $ref: '#/components/parameters/AdjustTypeQuery'
        - name: session
          in: query
          required: false
          description: >-
            Trading session: `intraday` for the regular session (default), `all`
            for all sessions; `trade_sessions=0|1` is also accepted.
          schema:
            type: string
          example: intraday
        - $ref: '#/components/parameters/TradeSessionsQuery'
      responses:
        '200':
          description: Candlestick list
          content:
            application/json:
              schema:
                type: object
                properties:
                  quote:
                    type: array
                    items:
                      $ref: '#/components/schemas/Candlestick'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: >-
            A paid Financial Context plan or remaining data request allowance is
            required.
        '403':
          description: The credential does not allow Financial Context market-data access.
components:
  parameters:
    AdjustTypeQuery:
      name: adjust_type
      in: query
      required: false
      description: >-
        Compatibility alias for `adjust`; supports SDK numeric enums: `0` for no
        adjustment and `1` for forward-adjusted data.
      schema:
        type: integer
        enum:
          - 0
          - 1
      example: 0
    TradeSessionsQuery:
      name: trade_sessions
      in: query
      required: false
      description: >-
        Compatibility alias for `session`; supports SDK numeric enums: `0` for
        regular session and `1` for all sessions.
      schema:
        type: integer
        enum:
          - 0
          - 1
      example: 0
  schemas:
    Candlestick:
      type: object
      description: >-
        Candlestick data. Fields follow the Financial Context market-data
        provider `Candlestick` shape.
      additionalProperties: true
      properties:
        close:
          type: string
          description: Close price, represented as a string to preserve decimal precision.
        open:
          type: string
          description: Open price, represented as a string to preserve decimal precision.
        low:
          type: string
          description: Low price, represented as a string to preserve decimal precision.
        high:
          type: string
          description: High price, represented as a string to preserve decimal precision.
        volume:
          type: string
          description: Volume.
        turnover:
          type: string
          description: Turnover, represented as a string to preserve decimal precision.
        timestamp:
          type: string
          format: date-time
          description: Data timestamp.
    Error:
      type: object
      description: Standard error response.
      additionalProperties: true
      properties:
        error:
          type: string
          description: Human-readable error message.
  responses:
    BadRequest:
      description: Invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid Financial Context credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Unauthorized: missing API key'
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Financial Context key generated from account settings. Send it as
        `x-api-key: <key>`.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth access token
      description: >-
        OAuth bearer token for Financial Context CLI, MCP, or agent clients with
        the `market_data` scope.

````