skills/tushare-data-1.0.5/references/数据接口/公募基金/基金持仓.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

2.6 KiB
Raw Blame History

公募基金持仓数据


接口fund_portfolio 描述:获取公募基金持仓数据,季度更新 积分5000积分以上每分钟请求200次8000积分以上每分钟请求500次具体请参阅积分获取办法

输入参数

名称 类型 必选 描述
ts_code str N 基金代码 (ts_code,ann_date,period至少输入一个参数)
symbol str N 股票代码
ann_date str N 公告日期YYYYMMDD格式
period str N 季度每个季度最后一天的日期比如20131231表示2013年年报
start_date str N 报告期开始日期YYYYMMDD格式
end_date str N 报告期结束日期YYYYMMDD格式

输出参数

名称 类型 默认显示 描述
ts_code str Y TS基金代码
ann_date str Y 公告日期
end_date str Y 截止日期
symbol str Y 股票代码
mkv float Y 持有股票市值(元)
amount float Y 持有股票数量(股)
stk_mkv_ratio float Y 占股票市值比
stk_float_ratio float Y 占流通股本比例

接口示例


pro = ts.pro_api()

df = pro.fund_portfolio(ts_code='001753.OF')

数据示例

    ts_code  ann_date  end_date     symbol          mkv    amount  \
0    001753.OF  20180823  20180630  603019.SH   3130994.46   68258.0   
1    001753.OF  20180718  20180630  600845.SH   3594140.00  136400.0   
2    001753.OF  20180718  20180630  600596.SH   5428107.30  335690.0   
3    001753.OF  20180718  20180630  600588.SH   3811672.65  155515.0   
4    001753.OF  20180718  20180630  600271.SH   3770284.00  149200.0   
5    001753.OF  20180823  20180630  300616.SZ     10900.00     100.0   
6    001753.OF  20180718  20180630  300577.SZ   4544793.54  110257.0   
7    001753.OF  20180718  20180630  300476.SZ   3783780.00  245700.0   
8    001753.OF  20180823  20180630  300409.SZ   2895942.00   72200.0   
9    001753.OF  20180718  20180630  300208.SZ   5768280.00  588000.0   
10   001753.OF  20180823  20180630  300188.SZ   2535922.50  138575.0  

     stk_mkv_ratio  stk_float_ratio  
0             4.37             0.01  
1             5.02             0.02  
2             7.57             0.05  
3             5.32             0.01  
4             5.26             0.01  
5             0.02             0.00  
6             6.34             0.17  
7             5.28             0.07  
8             4.04             0.05  
9             8.05             0.10  
10            3.54             0.03