huijin-etf-flow-akshare
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "huijin-etf-flow-akshare" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-629b4ee3f7087eeed96769aea49ecf1c7ccad8963f381184e9726ff6a12323ad. Verify the upstream source and version against https://skillhub.cn/skills/user_33655e80/huijin-etf-flow-akshare before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Uses only AkShare as the data source and requires no personal financial data keys. Produces daily creation/redemption estimates for a fixed list of ten ETFs, cumulative net inflows since 2018, and comparison charts against the CSI 300 index. Provides a local interactive dashboard, pre-market PNG snapshots, and CSV and JSON exports. Intended for scenarios such as “HuiJin ETF fund watch,” “AkShare-only ETF dashboard,” “ETF abnormal net subscriptions,” and “pre-market ETF fund update.” The ETF list is statically configured; it does not validate HuiJin’s current holdings ranking nor equate ETF aggregate subscription/redemption with HuiJin’s own trading.
Introduction source: third_party · user_33655e80 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: huijin-etf-flow-akshare
description: 用纯 AkShare、无需个人金融数据密钥,生成固定十只ETF逐日申赎估算、2018年以来累计净流入和沪深300对照,提供本地交互看板、盘前PNG、CSV和JSON。用于“汇金ETF资金观察”“AkShare-only ETF看板”“ETF异常净申购”“盘前更新ETF资金图”。名单为静态配置,不核验汇金当前持仓排名,也不把ETF整体申赎当作汇金自身交易。
metadata:
version: 1.0.0
data-access: public-akshare-onlyAkShare ETF 盘前观察
所有市场数据通过 AkShare 获取。无需输入、读取或创建个人金融数据密钥。不要调用 Wind、进门、Tushare、券商连接器,也不要用截图或其他来源拼接历史。
执行流程
- 选择安装目录之外的绝对输出目录。复用已有AkShare缓存以避免重复回填;首次采集需遍历2018年以来交易日,耗时可能较长。
- 检查Python 3.10+。缺依赖时,优先在输出目录的虚拟环境安装
scripts/requirements.txt,不要升级无关项目。 - 使用入口更新与生成结果。将
<skill>和<workspace>替换为实际绝对路径,路径含空格时加引号。
python -X utf8 "<skill>/scripts/run.py" report --output-dir "<workspace>"
python -X utf8 "<skill>/scripts/run.py" serve --output-dir "<workspace>"
默认截止日为北京时间昨天,自动回退至组件齐全的最近交易日。历史复算追加 --end YYYY-MM-DD。update只更新数据;report更新后生成PNG、CSV、JSON;serve启动仅本机可访问的看板,默认8766端口,冲突时加--port。
只有明确离线复算时才用--cached,注明“缓存重建,未重新取数”。不要把执行日期当成数据日期。失败时保留上一完整结果,明确说明更新失败与旧结果日期。
交付与口径
读取 <workspace>/output/premarket/latest.json。回复实际数据日期、单日及累计估算净流入、近20日流入、沪深300收盘点位,展示或链接PNG及CSV。看板支持区间、累计基准、异常规则、PNG/CSV导出。
必须说明:净流入是份额变化乘单位净值的估算;十只ETF是静态配置,未核验为汇金实时前十大;ETF整体申赎不代表汇金自身买卖。不得承诺复现示例图的Wind口径。
读取 methodology.md 了解公式、单位、篮子及接口。程序调整份额折算、排除上市首日存量;深交所导出达到65,535行时递归拆分;历史缺口拒绝发布累计值;最近日缺组件最多回退10个交易日。先查 data/quality.json,不得填零或伪造补齐。
安全验证与维护
安全范围见 security-audit.md。公开请求禁用环境代理和netrc凭据继承,发现认证配置即拒绝请求。保持此保护,不得为修复失败引入私人凭据。
python -X utf8 "<skill>/scripts/audit_public_access.py" --date YYYY-MM-DD
python -X utf8 -m unittest discover -s "<skill>/scripts" -p "test_akshare.py"
审计在移除凭据环境的子进程中运行,只输出接口状态及认证元数据计数,不输出密钥、请求头值、完整URL或个人环境。它验证当前版本与这次请求,不能倒推历史所有进程。
定时更新、发送消息、上传或发布仅在用户明确要求时执行。用户要求盘前推送时,可默认中国交易日北京时间08:30,用交易日历跳过节假日,说明投递位置。安装本技能不代表授权创建计划。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供固定十只ETF的逐日申赎估算、累计净流入及沪深300对照,满足特定金融数据分析需求
- 支持多种输出格式(PNG、CSV、JSON)和本地交互看板,提升用户体验
Highlights
- 触发词覆盖合理且边界清晰,如“汇金ETF资金观察”“盘前更新ETF资金图”等,能有效引导目标用户
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档结构良好但未显式标注 When to Use 章节
Recommendation: 建议补充 When to Use 章节以增强用户使用指引
-
文档过长 Reported severity: Minor
文档总行数约250行,超出理想长度
Recommendation: 建议精简内容或拆分部分说明至参考文档
Highlights
- 执行流程分步骤清晰,命令行示例完整,frontmatter 规范
Highlights
- 依赖 AkShare 公共接口,无需个人密钥,工具来源明确
- 具备缓存复用、失败回退、质量检查等机制,覆盖主要异常场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 11, 45
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.