ETF 份额变动

SkillDev tools

Query ETF share changes (etf_share). Use when the user asks about ETF shares, period-end shares, subscription/redemption shares, net share change, share change rate, or ETF share history.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the ETF 份额变动 skill

What this skill tells your AI

The instructions your AI receives, as published by ftshare-lab/ftshare-skill in ftshare-market-data/sub-skills/etf-share/SKILL.md and read by ahel’s review.

1. 接口描述

项目说明
接口名称ETF 份额(etf_share)
外部接口GET /api/v2/market/data/etf-share
请求方式GET(query 参数)
适用场景按 ETF 代码分页查询份额变动:统计周期、统计日期、期末/期初份额、申购/赎回份额、份额净变动和份额变动率,支持按统计周期和日期范围筛选

2. 请求参数

参数名类型是否必填描述取值示例备注
etf_codestringETF 代码510300兼容参数名 fund_code,建议使用 etf_code
stati_perdstring统计周期全部/季度/年度/截止时点/半年/全部;不传默认 全部
start_dateint开始日期20250101YYYYMMDD,按 trade_date 过滤
end_dateint结束日期20260909YYYYMMDD,按 trade_date 过滤;不早于 start_date
pageint页码1从 1 开始,默认 1
page_sizeint每页条数50默认 50,最大 200
--all-自动翻页拉全量-仅本子 skill 扩展参数

3. 响应说明

外层固定为 code / message / datadata 为分页对象:items(列表)、total_pagestotal_items

items 元素:

字段名类型说明
trade_codestringETF 交易代码
statistics_periodstring统计周期
trade_dateint统计日期 YYYYMMDD
fund_sharestring期末份额(份)
begin_sharesstring / null期初份额(份)
purchase_sharesstring / null申购份额(份)
redemption_sharesstring / null赎回份额(份)
shares_changestring / null份额净变动(份)
shares_change_ratiostring / null份额变动率(%)

4. 调用方式

python <RUN_PY> etf-share --etf-code 510300 --page 1 --page-size 5
python <RUN_PY> etf-share --etf-code 510300 --stati-perd 日 --start-date 20250101 --end-date 20260909
python <RUN_PY> etf-share --etf-code 510300 --all

<RUN_PY> 为主 SKILL.md 同级 run.py 的绝对路径。输出 JSON;HTTP 错误输出到 stderr 并以非零状态退出。

5. 注意事项

  • 份额字段单位为份;数值字段以字符串形式返回,以保留小数精度。
  • start_date / end_date 可单独提供;同时提供时 start_date 不得晚于 end_date
  • --all 会按 total_pages 自动翻页,把所有 items 合并为一个数组返回。

Signals

GitHub stars
64
Forks
13
Last commit
Sep 2026

ahel review

  • K6low
    bundled executables the agent is told to run

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
etf-share
Source
github.com/ftshare-lab/ftshare-skill