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

# 股东持仓

> 查询主要股东在不同报告期的持股情况、持仓变动及详情可用状态。

## 套餐权限

| 套餐 | 可用 |
| - | :-: |
| 免费版 | ❌ |
| 基础版 | ❌ |
| 专业版 | ✅ |
| 全量套餐（A 股、港股、美股） | ✅ |
| 企业版 | ✅ |

## 注意事项

* 响应包含多个报告期的股东记录，不限于十位股东；只有 `detail_available=true` 的 `object_id` 可用于股东详情接口。

## 支持的市场

| 市场 | 示例 |
| - | - |
| 美股 | AAPL.US |
| 港股 | 700.HK |
| A股 | 600519.SH |

## 请求参数

| 参数 | 是否必须 | 说明 |
| - | :-: | - |
| `symbol` | 是 | 股票代码 |
| `type` | 否 | 产品类型，当前支持 `stock` |

## 请求示例

```bash theme={null}
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.tickdb.ai/v1/fundamentals/shareholders/top?symbol=AAPL&type=stock"
```

## 返回字段说明

以下列出 `data` 中的字段；外层 `code=0` 表示成功。

| 字段 | 说明 |
| - | - |
| symbol | 股票代码。 |
| total | 汇总记录数。 |
| periods | 可用报告期列表。 |
| info | 按报告期分组的股东持仓数据。 |
| └─ period | 报告期。 |
| └─ share\_holders | 该报告期的股东列表。 |
|     └─ object\_id | 股东对象 ID。 |
|     └─ name | 股东名称。 |
|     └─ shares\_held | 持股数量，以字符串返回。 |
|     └─ percent\_shares\_held | 持股比例，包含百分号。 |
|     └─ shares\_changed | 股份变动。 |
|     └─ percent\_shares\_changed | 持股比例变化，包含百分号。 |
|     └─ period | 该条记录的报告期。 |
|     └─ filing\_date | 原始申报日期文本，例如 `2026/05/07`。 |
| members | 整理后的股东记录。 |
| └─ shareholder\_name | 股东名称。 |
| └─ shareholder\_type | 股东类型。 |
| └─ shares\_held | 持股数量，以字符串返回。 |
| └─ percent\_shares\_held | 持股比例数值，不含百分号；无法转换时为 `null`。 |
| └─ percent\_shares\_held\_raw | 持股比例原始文本，包含百分号并可保留 `<0.01%` 等表示。 |
| └─ percent\_shares\_changed | 持股比例变化数值，不含百分号；无法转换时为 `null`。 |
| └─ filing\_date | 申报日期，格式 `YYYY-MM-DD`。 |
| └─ report\_date | 报告日期，格式 `YYYY-MM-DD`；可能为 `null`。 |
| └─ object\_id | 股东对象 ID。 |
| └─ detail\_available | 是否可查询股东详情。 |

返回股东名称、机构类型、持股数量、持股比例、报告日期、`object_id` 和 `detail_available`。

只有 `detail_available=true` 时，对应的 `object_id` 才可用于股东详情接口。


## OpenAPI

````yaml openapi.yaml GET /v1/fundamentals/shareholders/top
openapi: 3.1.0
info:
  title: TickDB API
  description: TickDB 统一实时行情数据 API，提供 REST 和 WebSocket 接入。
  version: 1.0.3
  contact:
    email: support@tickdb.ai
servers:
  - url: https://api.tickdb.ai
    description: 生产环境
security:
  - ApiKeyAuth: []
paths:
  /v1/fundamentals/shareholders/top:
    get:
      tags:
        - fundamentals-holders
      summary: 股东持仓
      description: 查询主要股东在不同报告期的持股情况、持仓变动及详情可用状态。
      operationId: getFundamentalsShareholdersTop
      parameters:
        - $ref: '#/components/parameters/SymbolQuery'
        - $ref: '#/components/parameters/TypeQuery'
      responses:
        '200':
          $ref: '#/components/responses/TopShareholdersResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    SymbolQuery:
      name: symbol
      in: query
      required: true
      schema:
        type: string
        examples:
          - AAPL
          - '700'
          - '600519'
          - AAPL.US
          - 700.HK
          - 600519.SH
      description: 股票代码
    TypeQuery:
      name: type
      in: query
      required: false
      schema:
        type: string
        enum:
          - stock
      description: 产品类型，当前支持 `stock`
  responses:
    TopShareholdersResponse:
      description: 股东持仓响应。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TopShareholdersEnvelope'
    ErrorResponse:
      description: >-
        错误响应。常见 HTTP 状态包括
        400（参数错误）、401（鉴权失败）、403（权限或配额限制）、404（无匹配数据）、429（请求频率限制）和 503（服务暂不可用）。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            missingAPIKey:
              summary: 缺少 API Key
              value:
                code: '1002'
                message: API key is required. Provide via X-API-Key header
                error: '1002'
            missingKind:
              summary: 缺少必填参数
              value:
                code: 40001
                message: kind is required
                data: null
            endpointForbidden:
              summary: API Key 无权访问该接口
              value:
                code: 3009
                message: This endpoint is not allowed for your API key
                data: null
            marketForbidden:
              summary: API Key 未开放该市场
              value:
                code: 3010
                message: Fundamentals market not allowed for your API key
                data:
                  market: US
            noAvailableSource:
              summary: 数据暂不可用
              value:
                code: 5003
                message: Data is temporarily unavailable
                data: null
            notFound:
              summary: 无匹配数据
              value:
                code: 40404
                message: shareholder detail not found
                data: null
            businessNoData:
              summary: 查询条件无有效业务数据
              value:
                code: 40405
                message: valuation time series not found
                data: null
  schemas:
    TopShareholdersEnvelope:
      allOf:
        - $ref: '#/components/schemas/SuccessEnvelope'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/TopShareholdersData'
    ErrorEnvelope:
      type: object
      required:
        - code
        - message
      properties:
        code:
          description: TickDB API 业务错误码；可能为整数或字符串，客户端应归一化为字符串后比较。
          oneOf:
            - type: integer
            - type: string
        message:
          type: string
          description: 错误说明。
        error:
          type: string
          description: 兼容错误标识；仅部分错误响应返回。
        data:
          description: 可选的错误上下文；可能为 null、对象或数组。
          oneOf:
            - type: 'null'
            - type: object
              additionalProperties: true
            - type: array
              items: {}
    SuccessEnvelope:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          const: 0
          description: 业务状态码，成功为 0。
    TopShareholdersData:
      type: object
      required:
        - symbol
        - total
        - periods
        - info
        - members
      properties:
        symbol:
          type: string
          description: 标准化股票代码。
        total:
          type: integer
          description: 整理后的股东记录数量。
        periods:
          type: array
          items:
            type: string
          description: 可用报告期列表。
        info:
          type: array
          items:
            $ref: '#/components/schemas/TopShareholderPeriod'
          description: 按报告期分组的股东持仓数据。
        members:
          type: array
          description: 整理后的股东记录。
          items:
            $ref: '#/components/schemas/TopShareholderMember'
      additionalProperties: false
    TopShareholderPeriod:
      type: object
      required:
        - period
        - share_holders
      properties:
        period:
          type: string
          description: 报告期。
        share_holders:
          type: array
          description: 该报告期的股东持仓列表。
          items:
            $ref: '#/components/schemas/TopShareholderPeriodMember'
      additionalProperties: false
    TopShareholderMember:
      type: object
      required:
        - object_id
        - shareholder_name
        - shareholder_type
        - shares_held
        - percent_shares_held
        - percent_shares_held_raw
        - percent_shares_changed
        - filing_date
        - report_date
        - detail_available
      properties:
        object_id:
          type: string
          description: 股东对象 ID。
        shareholder_name:
          type: string
          description: 股东名称。
        shareholder_type:
          type:
            - string
            - 'null'
          description: 股东类型。
        shares_held:
          type: string
          description: 持股数量。
        percent_shares_held:
          type:
            - string
            - 'null'
          description: 持股比例数值，不含百分号；无法转换时为 null。
        percent_shares_held_raw:
          type: string
          description: 原始持股比例文本，包含百分号并可保留 `<0.01%` 等表示。
        percent_shares_changed:
          type:
            - string
            - 'null'
          description: 持股比例变化数值，不含百分号；无法转换时为 null。
        filing_date:
          type: string
          format: date
          description: 申报日期。
        report_date:
          type:
            - string
            - 'null'
          format: date
          description: 报告日期。
        detail_available:
          type: boolean
          description: 该 object_id 是否存在可用股东详情。
      additionalProperties: false
    TopShareholderPeriodMember:
      type: object
      required:
        - filing_date
        - name
        - object_id
        - percent_shares_changed
        - percent_shares_held
        - period
        - shares_changed
        - shares_held
      properties:
        filing_date:
          type: string
          description: 申报日期。
        name:
          type: string
          description: 股东名称。
        object_id:
          type: string
          description: 股东对象 ID。
        percent_shares_changed:
          type: string
          description: 持股比例变化，包含百分号。
        percent_shares_held:
          type: string
          description: 持股比例，包含百分号。
        period:
          type: string
          description: 该条记录所属报告期。
        shares_changed:
          type: string
          description: 股份变动数量。
        shares_held:
          type: string
          description: 持股数量。
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.