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

# POST /batch-kline デバッグモジュール

> POST /batch-kline デバッグモジュール

## POST /batch-kline デバッグモジュール

<Card title="インターフェース説明へ戻る" href="/apis/apis/ja/api-reference/stock/batch-kline" />

<script src="/apis/seo-keywords.js" />


## OpenAPI

````yaml apis/api-reference/openapi-ja.json POST /quote-stock-b-api/batch-kline
openapi: 3.1.0
info:
  title: AllTick マーケットデータ API
  description: 株式、外国為替、暗号通貨、コモディティのリアルタイム・履歴マーケットデータAPI。
  version: 1.0.0
servers:
  - url: https://quote.alltick.co
    description: Production
security: []
paths:
  /quote-stock-b-api/batch-kline:
    post:
      summary: Stock Batch K-Line Query
      description: >-
        Batch query latest 2 K-lines for multiple stock products. Supports
        querying multiple products and K-line types simultaneously.
      operationId: postStockBatchKline
      parameters:
        - name: token
          in: query
          required: true
          description: API認証トークン
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchKlineRequest'
            example:
              trace: abc-123
              data:
                data_list:
                  - code: 700.HK
                    kline_type: 1
                    kline_timestamp_end: 0
                    query_kline_num: 2
                    adjust_type: 0
                  - code: AAPL.US
                    kline_type: 8
                    kline_timestamp_end: 0
                    query_kline_num: 2
                    adjust_type: 0
      responses:
        '200':
          description: 成功レスポンス
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchKlineResponse'
components:
  schemas:
    BatchKlineRequest:
      type: object
      required:
        - trace
        - data
      properties:
        trace:
          type: string
          description: リクエスト追跡用の一意のトレースID
        data:
          type: object
          required:
            - data_list
          properties:
            data_list:
              type: array
              items:
                type: object
                required:
                  - code
                  - kline_type
                  - kline_timestamp_end
                  - query_kline_num
                  - adjust_type
                properties:
                  code:
                    type: string
                    description: 製品コード
                  kline_type:
                    type: integer
                    description: >-
                      Kラインタイプ（1=1分, 2=5分, 3=15分, 4=30分, 5=1時間, 6=2時間, 7=4時間,
                      8=日足, 9=週足, 10=月足）
                  kline_timestamp_end:
                    type: integer
                    description: 終了タイムスタンプ（0 = 最新）
                  query_kline_num:
                    type: integer
                    description: 照会するKライン数（バッチ最大2本）
                  adjust_type:
                    type: integer
                    description: 調整タイプ（0=権利落ち, 1=前方調整）
    BatchKlineResponse:
      type: object
      properties:
        ret:
          type: integer
        msg:
          type: string
        trace:
          type: string
        data:
          type: object
          properties:
            kline_list:
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                  kline_type:
                    type: integer
                  kline_data:
                    type: array
                    items:
                      type: object
                      properties:
                        timestamp:
                          type: string
                        open_price:
                          type: string
                        close_price:
                          type: string
                        high_price:
                          type: string
                        low_price:
                          type: string
                        volume:
                          type: string
                        turnover:
                          type: string

````