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

# GET /kline デバッグモジュール

> GET /kline デバッグモジュール

## GET /kline デバッグモジュール

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

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


## OpenAPI

````yaml apis/api-reference/openapi-ja.json GET /quote-stock-b-api/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/kline:
    get:
      summary: Stock K-Line Query
      description: >-
        Query historical K-line (candlestick) data for a single stock product
        (US stocks, HK stocks, A-shares). Returns OHLCV data. Max 500 K-lines
        per request.
      operationId: getStockKline
      parameters:
        - name: token
          in: query
          required: true
          description: API認証トークン
          schema:
            type: string
        - name: query
          in: query
          required: true
          description: traceとdataフィールドを含むURLエンコードされたJSON文字列。
          schema:
            type: string
            default: >-
              {"trace":"abc-123","data":{"code":"700.HK","kline_type":1,"kline_timestamp_end":0,"query_kline_num":2,"adjust_type":0}}
          example: >-
            {"trace":"abc-123","data":{"code":"700.HK","kline_type":1,"kline_timestamp_end":0,"query_kline_num":2,"adjust_type":0}}
      responses:
        '200':
          description: 成功レスポンス
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KlineResponse'
components:
  schemas:
    KlineResponse:
      type: object
      properties:
        ret:
          type: integer
          description: リターンコード（200 = 成功）
        msg:
          type: string
          description: レスポンスメッセージ
        trace:
          type: string
          description: リクエストトレースID
        data:
          type: object
          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_list:
              type: array
              items:
                type: object
                properties:
                  timestamp:
                    type: string
                    description: Kラインタイムスタンプ
                  open_price:
                    type: string
                    description: 始値
                  close_price:
                    type: string
                    description: 終値
                  high_price:
                    type: string
                    description: 高値
                  low_price:
                    type: string
                    description: 安値
                  volume:
                    type: string
                    description: 出来高
                  turnover:
                    type: string
                    description: 売買代金

````