Skip to content
etf-pcf-download logo

下载指定 PCF 文件 - 下载指定 PCF 文件

etf-pcf-download

下载指定 PCF 文件(market.ft.tech)。用户问下载 PCF、PCF 文件内容、某只 ETF 申购赎回清单 XML 时使用。

SKILL.md

Full skill instructions

下载指定 PCF 文件 - 下载指定 PCF 文件

1. 接口描述

项目说明
接口名称下载指定 PCF 文件
外部接口GET /​data/​api/​v1/​market/​data/​etf-pcf/​etf-pcfs/​{filename}
请求方式GET
适用场景根据 PCF 文件名下载对应 XML 文件内容,用于 ETF 申购赎回清单的详细数据

2. 请求参数

说明:filename 为路径参数(必填),通常由 PCF 列表接口 etf-pcfs 的 items[].filename 获得。

参数名类型是否必填描述取值示例备注
filenamestring是PCF 文件名(路径参数)pcf_159003_20260309.xml由 PCF 列表接口的 items[].filename 获得

3. 响应说明

  • 成功:返回文件二进制流,Content-Type: application/​octet-stream,Content-Disposition: attachment; filename="{filename}"。响应体为 PCF 的 XML 内容。
  • 失败:HTTP 非 2xx,响应体为错误信息。

4. 用法

通过主目录 run.py 调用(必填 --filename,可选 --output 保存到文件):

# 输出到 stdout,可重定向到文件
python <RUN_PY> etf-pcf-download --filename pcf_159003_20260309.xml > pcf_159003_20260309.xml

# 保存到指定文件(仅允许当前工作目录下路径,防止路径穿越)
python <RUN_PY> etf-pcf-download --filename pcf_159003_20260309.xml --output pcf_159003_20260309.xml

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。未传 --output 时 XML 输出到 stdout;传 --output 时写入该文件。本接口无需额外请求头。

5. 请求示例

GET https://market.ft.tech/​data/​api/​v1/​market/​data/​etf-pcf/​etf-pcfs/​pcf_159003_20260309.xml

6. 注意事项

  • filename 须与列表接口返回的 filename 一致,且不得包含路径分隔符(如 /、\)
  • 使用 --output 时仅可写入当前工作目录及其子目录,不可使用绝对路径或 .. 穿越目录
  • 自动化/端到端测试:不要硬编码 filename。应先调用 etf-pcfs --date YYYYMMDD,从响应 items[].filename 取真实文件名(上交所/深交所前缀不同),再调用本 skill;否则易 404 或文件不存在。

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