agentsclimarketplace

Index weight download

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/index-weight-download

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill index-weight-download

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

根据 url_hash 下载指数权重 Excel xlsx(market.ft.tech)。前置:须先通过 index-weight-list 或 index-weight-summary 取得 url_hash。用户问下载指数权重表、成份权重 xlsx、指数权重 Excel、保存权重文件时使用。

SKILL.md

1.9 KB, as published. Nobody here has run it

下载指数权重文件(index-weight-download)

1. 接口描述

项目说明
接口名称下载指数权重文件
外部接口/api/v1/market/data/index/index_weight/{url_hash}
请求方式GET
适用场景根据「分页查询指数权重列表」或「分页查询指数权重汇总」返回的 url_hash 下载该期指数权重 Excel(xlsx)二进制文件

2. 请求参数

说明:url_hash 为路径参数,必填。

参数名类型是否必填描述取值示例备注
url_hashstring列表或汇总接口返回的 url_hashxyz789路径参数

3. 响应说明

成功时返回 Excel(xlsx) 二进制流。

  • 成功:HTTP 200,响应体为 xlsx 文件字节流

4. 调用方式

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

python <RUN_PY> index-weight-download --url-hash <url_hash>
python <RUN_PY> index-weight-download --url-hash <url_hash> --output ./weights.xlsx

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

  • --output:仅允许保存到当前工作目录下的路径;不传则默认为 {url_hash}.xlsx

直接执行 handler(调试)

python scripts/handler.py --url-hash <url_hash> --output ./weights.xlsx

5. 链路说明

本接口为权重链末端下载
前置index-weight-summaryperiods[].url_hashindex-weight-listurl_hash → 传给本接口的 --url-hash

6. 请求示例

GET /api/v1/market/data/index/index_weight/xyz789

Gives 0 of the 12 instructions most pdf office docs skills give

Counted across 635 of the 690 authors here whose files we hold, read 2026-08-06

  • extract text using pdfplumberin 92 of 635, across 25 files
  • create PDFs using reportlabin 83 of 635, across 16 files
  • read FORMS.md to fill out PDF formsin 80 of 635, across 13 files
  • OCR scanned PDFs using pytesseractin 77 of 635, across 10 files
  • merge or split PDFs using qpdfin 70 of 635, across 3 files
  • use Excel formulas instead of hardcoded calculated valuesin 68 of 635, across 12 files
  • unpack edit xml and repack existing documentsin 63 of 635, across 8 files
  • document sources for hardcoded valuesin 61 of 635, across 9 files
  • write minimal python code without unnecessary commentsin 59 of 635, across 7 files
  • run the recalculation script after adding or modifying formulasin 58 of 635, across 6 files
  • fix all identified formula errors and recalculatein 58 of 635, across 6 files
  • format years as text stringsin 57 of 635, across 5 files

Said here and by no other author read

  • obtain url_hash before calling this skill
  • request the index weight download endpoint
  • pass url_hash as a required path parameter
  • expect an xlsx binary stream on success
  • use the run.py wrapper to execute the skill
  • save output only to the current working directory

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.