> ## 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.

# ローソク足データを取得

> 単一証券のローソク足データを取得します。期間は `1m`、`5m`、`15m`、`30m`、`1h`、`day`、`week`、`month`、`year` を使用できます。



## OpenAPI

````yaml /ja/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 は、認証済みで従量制の読み取り専用 US
    株式市場データアクセスを提供します。`/api/market-data/*` エンドポイントを使用して、`.US` シンボルと `US` market
    フィルターで、クォート、ローソク足、市場カレンダー、ファンダメンタルズ、ニュース、スクリーナー、関連分析にアクセスできます。
servers:
  - url: https://openapi.fcontext.com
    description: 本番環境
security:
  - ApiKeyHeader: []
  - BearerAuth: []
tags:
  - name: クォート
    description: クォート、ローソク足、取引日、板情報、ブローカーキュー、その他の市場データエンドポイント。
  - name: コンテンツ
    description: 証券コンテンツ：ニュースとトピック。
  - name: 市場
    description: 市場ステータス、取引カレンダー、異常な取引活動、ランキング。
  - name: カレンダー
    description: 財務イベントカレンダー。
  - name: ファンダメンタルズ
    description: ファンダメンタルズ、アナリスト評価、バリュエーション、株主、取引開示。
  - name: スクリーナー
    description: スクリーニング戦略、フィルター、指標。
paths:
  /api/market-data/quote/{symbol}/candlestick:
    get:
      tags:
        - クォート
      summary: ローソク足データを取得
      description: >-
        単一証券のローソク足データを取得します。期間は
        `1m`、`5m`、`15m`、`30m`、`1h`、`day`、`week`、`month`、`year` を使用できます。
      parameters:
        - name: symbol
          in: path
          required: true
          description: 証券シンボル。例：`AAPL.US`。
          schema:
            type: string
          example: AAPL.US
        - name: period
          in: query
          required: false
          description: >-
            ローソク足期間。デフォルトは
            `day`。`1m`、`5m`、`15m`、`30m`、`1h`、`day`、`week`、`month`、`year`
            をサポートします。
          schema:
            type: string
            default: day
          example: day
        - name: count
          in: query
          required: false
          description: 返すローソク足数。デフォルトは 100。
          schema:
            type: integer
            default: 100
            minimum: 1
          example: 100
        - name: adjust
          in: query
          required: false
          description: 調整種別：`none` は無調整（デフォルト）、`forward` は前方調整済みデータ。
          schema:
            type: string
          example: none
        - $ref: '#/components/parameters/AdjustTypeQuery'
        - name: session
          in: query
          required: false
          description: 取引セッション：`intraday` は通常取引セッション（デフォルト）、`all` はすべてのセッション。
          schema:
            type: string
          example: intraday
        - $ref: '#/components/parameters/TradeSessionsQuery'
      responses:
        '200':
          description: ローソク足一覧
          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: 有料の Financial Context プラン、または残りのデータリクエスト枠が必要です。
        '403':
          description: この認証情報では Financial Context の市場データにアクセスできません。
components:
  parameters:
    AdjustTypeQuery:
      name: adjust_type
      in: query
      required: false
      description: '`adjust` の互換エイリアス：`0` は無調整、`1` は前方調整済みデータ。'
      schema:
        type: integer
        enum:
          - 0
          - 1
      example: 0
    TradeSessionsQuery:
      name: trade_sessions
      in: query
      required: false
      description: '`session` の互換エイリアス：`0` は通常取引セッション、`1` はすべてのセッション。'
      schema:
        type: integer
        enum:
          - 0
          - 1
      example: 0
  schemas:
    Candlestick:
      type: object
      description: ローソク足データポイント。
      additionalProperties: true
      properties:
        close:
          type: string
          description: 終値。小数精度を保持するため文字列で表されます。
        open:
          type: string
          description: 始値。小数精度を保持するため文字列で表されます。
        low:
          type: string
          description: 安値。小数精度を保持するため文字列で表されます。
        high:
          type: string
          description: 高値。小数精度を保持するため文字列で表されます。
        volume:
          type: string
          description: 出来高。
        turnover:
          type: string
          description: 売買代金。小数精度を保持するため文字列で表されます。
        timestamp:
          type: string
          format: date-time
          description: データタイムスタンプ。
    Error:
      type: object
      description: 標準エラーレスポンス。
      additionalProperties: true
      properties:
        error:
          type: string
          description: 人が読めるエラーメッセージ。
  responses:
    BadRequest:
      description: リクエストパラメータが無効です。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Financial Context 認証情報がない、または無効です。
      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。`x-api-key: <key>` として送信します。'
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth access token
      description: >-
        `market_data` scope を持つ Financial Context CLI、MCP、または agent クライアント向けの
        OAuth bearer token。

````