跳转至

← 返回接口目录

每日股本(盘前)

合并财务快照和服务器统计资源,返回每日股本数据。

项目 内容
调用 client.helpers.daily_share_capital(codes=None, stats_path="zhb.zip", refresh_stats=False)
返回 DailyShareCapitalTable
数据来源 0x0010 财务快照 + 0x06b9 统计资源

输入参数

参数 是否必填 说明
codes 股票代码或代码列表;不传时扫描全部 A 股
stats_path 统计资源路径,默认 zhb.zip
refresh_stats 是否强制重新下载统计资源,默认 False

返回字段

DailyShareCapitalTable 包含 codesrowscount。每行 DailyShareCapital 包含 full_codetrade_datetotal_sharescirculating_sharesfree_float_sharesfinance_updated_dateshare_source

示例

from eltdx import TdxClient

with TdxClient(timeout=3) as client:
    table = client.helpers.daily_share_capital(["sz000001", "sh600000"])
    for row in table.rows:
        print(row.full_code, row.total_shares, row.free_float_shares)

不传 codes 时扫描全部 A 股;统计资源会在 Helper 实例内复用,refresh_stats=True 强制重新下载。

真实返回样本

真实返回 JSON · DailyShareCapitalTable(1 条节选)

采样标的sz000001
返回类型DailyShareCapitalTable

真实采样;表格只展示一行,股本单位统一为股。

{
  "codes": ["sz000001"],
  "rows": [
    {
      "full_code": "sz000001",
      "trade_date": "2026-08-17",
      "total_shares": 19405918750.0,
      "circulating_shares": 19405685000.0,
      "free_float_shares": 8160565600.0,
      "finance_updated_date": "2026-08-15",
      "share_source": "finance_snapshot+tdx_stats"
    }
  ]
}