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

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

## POST /batch-kline Debug Module

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

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


## OpenAPI

````yaml apis/api-reference/openapi.json POST /quote-stock-b-api/batch-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/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: Your API authentication token
          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: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchKlineResponse'
components:
  schemas:
    BatchKlineRequest:
      type: object
      required:
        - trace
        - data
      properties:
        trace:
          type: string
          description: Unique trace ID for request tracking
        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: 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_timestamp_end:
                    type: integer
                    description: End timestamp (0 = latest)
                  query_kline_num:
                    type: integer
                    description: Number of K-lines to query (max 2 for batch)
                  adjust_type:
                    type: integer
                    description: Adjustment type (0=ex-rights, 1=forward-adjusted)
    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

````