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

# 批量获取日内分时数据

> 一次请求获取多个标的的日内分钟级K线数据。



## OpenAPI

````yaml /zh-Hans/api-reference/openapi.json get /v1/klines/intraday/batch
openapi: 3.1.0
info:
  contact:
    email: support@tickflow.org
  description: 提供中国A股、美股、港股的实时和历史行情数据接口
  title: MarketData API
  version: 1.0.0
servers:
  - url: https://api.alphafeed.org
security:
  - ApiKeyHeader: []
  - ApiKeyQuery: []
tags:
  - description: 历史K线（OHLCV）数据
    name: K线数据
  - description: 实时报价和市场深度
    name: 实时行情
  - description: 日内分钟级别数据
    name: 日内分时
  - description: 标的元数据
    name: 基础信息
paths:
  /v1/klines/intraday/batch:
    get:
      tags:
        - 日内分时
      summary: 批量获取日内分时数据
      description: 一次请求获取多个标的的日内分钟级K线数据。
      operationId: getIntradayBatch
      parameters:
        - description: 标的代码，逗号分隔（如 `600000.SH,000001.SZ,AAPL.US`）
          example: 600000.SH,000001.SZ
          in: query
          name: symbols
          required: true
          schema:
            type: string
        - description: 分时周期
          in: query
          name: period
          schema:
            default: 1m
            enum:
              - 1m
              - 5m
              - 10m
              - 15m
              - 30m
              - 60m
            type: string
        - description: 最大返回条数
          in: query
          name: count
          schema:
            default: 100
            maximum: 10000
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KlineBatchResponse'
          description: 批量日内数据
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    KlineBatchResponse:
      description: 以标的代码为 key 的K线数据字典
      properties:
        data:
          additionalProperties:
            $ref: '#/components/schemas/CompactKlineData'
          type: object
      required:
        - data
      type: object
    CompactKlineData:
      description: 列式OHLCV数据，传输效率高。每个数组长度相同，相同下标对应同一根K线。
      properties:
        amount:
          description: 成交额
          items:
            type: number
          type: array
        close:
          description: 收盘价
          items:
            type: number
          type: array
        high:
          description: 最高价
          items:
            type: number
          type: array
        low:
          description: 最低价
          items:
            type: number
          type: array
        open:
          description: 开盘价
          items:
            type: number
          type: array
        prev_close:
          description: 前收盘价（部分接口返回）
          items:
            type: number
          type: array
        timestamp:
          description: 时间戳（毫秒）
          items:
            format: int64
            type: integer
          type: array
        volume:
          description: 成交量
          items:
            format: int64
            type: integer
          type: array
      required:
        - timestamp
        - open
        - high
        - low
        - close
        - volume
        - amount
      type: object
    ErrorResponse:
      description: 错误响应
      properties:
        code:
          description: HTTP 状态码
          type: integer
        message:
          description: 错误描述
          type: string
      required:
        - code
        - message
      type: object
    RateLimitResponse:
      description: 限流响应
      properties:
        code:
          example: 429
          type: integer
        message:
          description: 限流说明
          type: string
        retry_after_ms:
          description: 建议等待时间（毫秒）
          type: integer
      required:
        - code
        - message
        - retry_after_ms
      type: object
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: API Key 无效或缺失
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: 当前套餐无此功能/市场权限
    RateLimited:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitResponse'
      description: 请求频率超限
  securitySchemes:
    ApiKeyHeader:
      description: 在请求头 X-API-Key 中传递 API Key
      in: header
      name: X-API-Key
      type: apiKey
    ApiKeyQuery:
      description: 在 URL 查询参数 api_key 中传递 API Key
      in: query
      name: api_key
      type: apiKey

````