> ## 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 Debug Module

> This page explains GET /kline Debug Module for AllTick API, including integration context, parameters, response fields and usage notes for real-time market data workflows.

## GET /kline Debug Module

<Card title="Back to Interface Description" href="/apis/apis/en/api-reference/stock/kline" />

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


## OpenAPI

````yaml apis/api-reference/openapi.json GET /quote-stock-b-api/kline
openapi: 3.1.0
info:
  title: AllTick Market Data API
  description: >-
    Real-time and historical market data API for stocks, forex,
    cryptocurrencies, and commodities.
  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: Your API authentication token
          schema:
            type: string
        - name: query
          in: query
          required: true
          description: URL-encoded JSON string containing trace and data fields.
          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: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KlineResponse'
components:
  schemas:
    KlineResponse:
      type: object
      properties:
        ret:
          type: integer
          description: Return code (200 = success)
        msg:
          type: string
          description: Response message
        trace:
          type: string
          description: Request trace ID
        data:
          type: object
          properties:
            code:
              type: string
              description: Product code
            kline_type:
              type: integer
              description: >-
                K-line type (1=1min, 2=5min, 3=15min, 4=30min, 5=1hour, 6=2hour,
                7=4hour, 8=daily, 9=weekly, 10=monthly)
            kline_list:
              type: array
              items:
                type: object
                properties:
                  timestamp:
                    type: string
                    description: K-line timestamp
                  open_price:
                    type: string
                    description: Open price
                  close_price:
                    type: string
                    description: Close price
                  high_price:
                    type: string
                    description: High price
                  low_price:
                    type: string
                    description: Low price
                  volume:
                    type: string
                    description: Volume
                  turnover:
                    type: string
                    description: Turnover

````