Skip to content
index-description-download logo

下载指数描述文件(index-description-download)

index-description-download

根据 url_hash 下载指数描述 PDF(market.ft.tech)。前置:须先通过 index-description-paginated 取得 url_hash。用户问下载指数描述、指数说明 PDF、指数简介文件、保存指数说明时使用。

SKILL.md

Full skill instructions

下载指数描述文件(index-description-download)

1. 接口描述

项目说明
接口名称下载指数描述文件
外部接口/​data/​api/​v1/​market/​data/​index/​index_description/​{url_hash}
请求方式GET
适用场景根据「分页查询指数描述列表」返回的 url_hash 下载对应指数描述文件(内容为 PDF)

2. 请求参数

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

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

3. 响应说明

成功时返回 PDF 二进制流。

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

4. 调用方式

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

python <RUN_PY> index-description-download --url-hash <url_hash>
python <RUN_PY> index-description-download --url-hash <url_hash> --output index-desc.pdf

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

  • --output:仅允许保存到当前工作目录下的路径(防止路径遍历);不传则默认为当前目录 {url_hash}.pdf。

直接执行 handler(调试)

python scripts/​handler.py --url-hash <url_hash> --output ./​desc.pdf

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

5. 链路说明

本接口为描述链第 2 步(末端下载)。
前置:index-description-paginated → 取得 url_hash → 传给本接口的 --url-hash。

6. 请求示例

GET https://market.ft.tech/​data/​api/​v1/​market/​data/​index/​index_description/​abc123def456

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View