分页查询指数权重汇总(index-weight-summary)

SkillFiles & storage

Paginated query of index weight summaries (market.ft.tech). Can query by index_code to get the date and url_hash of each weight period for a specified index. Use when the user asks about index weight summaries, weight periods of constituent weights, weight file url_hash, CSI 300 weight dates, or wha

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 分页查询指数权重汇总(index-weight-summary) 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/index-weight-summary/SKILL.md and read by ahel’s review.

1. 接口描述

项目说明
接口名称分页查询指数权重汇总
外部接口/api/v1/market/data/index/index_weight_summary
请求方式GET
适用场景按指数汇总各期权重数据的 dateurl_hash;可用 index_code 定位单个指数,便于再调用「下载指数权重文件」获取具体权重表

2. 请求参数

说明:使用查询参数。

参数名类型是否必填描述取值示例备注
index_codestring指数代码000300不传则分页返回全部指数
pageint页码1默认 1
page_sizeint每页条数20默认 20,最大 100

3. 响应说明

返回值为分页列表对象 IndexWeightSummaryListResponse

IndexWeightSummaryListResponse 结构

字段名类型是否可为空说明单位
totalint总条数(按指数汇总的记录数)-
pageint当前页码-
page_sizeint每页条数-
index_weightsarray单只指数的期数汇总列表-

IndexWeightSummary 结构(index_weights 元素)

字段名类型是否可为空说明单位
index_codeString指数代码-
periodsarray该指数各期的日期与下载用 url_hash-

IndexWeightPeriod 结构(periods 元素)

字段名类型是否可为空说明单位
dateString权重日期;文档示例为 YYYYMMDD,线上也可能为 YYYY-MM-DD,以实际返回为准-
url_hashString该期权重文件的哈希-

4. 调用方式

本 handler 与上级 FTShare-index-data/run.py 配合使用:

python <RUN_PY> index-weight-summary --index-code 000300 --page 1 --page-size 20
python <RUN_PY> index-weight-summary --page 1 --page-size 20

其中 <RUN_PY>FTShare-index-data/run.py 的绝对路径。

直接执行 handler(调试)

python scripts/handler.py --page 1 --page-size 20
python scripts/handler.py --index-code 000300 --page 1 --page-size 20

(需在 sub-skills/index-weight-summary 目录下执行,或传入脚本完整路径。)

5. 链路说明

本接口为权重链第 1 步

  • 取到 index_code + date → 可调 index-weight-list --index_code <code> --date <date> 查成份明细。
  • 取到 url_hash → 可调 index-weight-download --url-hash <url_hash> 直接下载整期 xlsx。

6. 请求示例

GET /api/v1/market/data/index/index_weight_summary?index_code=000300&page=1&page_size=20

Signals

GitHub stars
64
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
index-weight-summary
Source
github.com/ftshare-lab/ftshare-skill