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

# 获取除权因子

> 获取标的的历史除权除息调整因子，可用于计算复权价格。



## OpenAPI

````yaml /zh-Hans/api-reference/openapi.json get /v1/klines/ex-factors
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/ex-factors:
    get:
      tags:
        - K线数据
      summary: 获取除权因子
      description: 获取标的的历史除权除息调整因子，可用于计算复权价格。
      operationId: getExFactors
      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: start_time
          schema:
            format: int64
            type: integer
        - description: 结束时间戳（毫秒，含）
          in: query
          name: end_time
          schema:
            format: int64
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExFactorsResponse'
          description: 除权因子数据
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    ExFactorsResponse:
      description: 以标的代码为 key 的除权因子历史字典
      properties:
        data:
          additionalProperties:
            items:
              $ref: '#/components/schemas/ExFactorEntry'
            type: array
          type: object
      required:
        - data
      type: object
    ExFactorEntry:
      properties:
        ex_factor:
          description: 除权因子
          type: number
        timestamp:
          description: 除权日时间戳（毫秒）
          format: int64
          type: integer
      required:
        - timestamp
        - ex_factor
      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

````