Akshare Fund

v1.0.0

基金量化数据分析工具,基于AkShare库获取公募基金净值、持仓、估值等数据。用于基金查询、持仓分析、业绩追踪。

1· 678·0 current·0 all-time
byBin F@bingobinf

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for bingobinf/akshare-fund.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Akshare Fund" (bingobinf/akshare-fund) from ClawHub.
Skill page: https://clawhub.ai/bingobinf/akshare-fund
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install akshare-fund

ClawHub CLI

Package manager switcher

npx clawhub@latest install akshare-fund
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, SKILL.md usage examples, and the Python code all consistently implement fund queries, holdings aggregation, and valuation using the akshare and pandas libraries. There are no unrelated env vars, binaries, or capabilities requested.
Instruction Scope
Runtime instructions tell the agent to run fund_cli.py with various subcommands; the code performs network requests via AkShare to public data sources, reads/merges returned tables, and prints results. The instructions do not ask the agent to read user files, secrets, or other unrelated data.
Install Mechanism
No install spec is provided; the script exits with a user-facing message asking to pip install akshare and pandas. This is low risk but means the user must install third‑party Python packages (preferably in a virtualenv). AkShare itself will make network requests to external data providers.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code does not attempt to access secrets or system config. Network access to fetch market/fund data is proportional to the stated functionality.
Persistence & Privilege
Skill is not always-on, is user-invocable, and does not request elevated or persistent system privileges. It does not modify other skills or system-wide agent settings.
Assessment
This skill appears coherent with its description, but consider the following before installing: 1) The script depends on third‑party Python packages (akshare, pandas). Install them in a virtualenv and review their versions and provenance (pip package metadata, project homepage) because these packages will make network calls and may have additional dependencies. 2) The code makes live network requests to public data sources via AkShare — expect outbound traffic and potential changes if source sites change. 3) Metadata inconsistencies (registry vs. _meta.json ownerId/version differences) and a hard-coded default year (2025) look like minor packaging bugs — not malicious but worth noting. 4) Do not treat outputs as financial advice. If you need stronger assurance, request the package's origin (source repo/homepage), a full code review, or run it in an isolated environment first.

Like a lobster shell, security has layers — review code before you run it.

latestvk972xskx5vhd6nj8yqy2fd30g5832a73
678downloads
1stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

基金量化 - AkShare 数据接口

支持的功能

1. 基金基本信息

获取基金名称、类型、基金公司等

2. 基金净值

交易时间显示实时估算净值,非交易时间显示历史净值

3. 基金持仓

获取基金持仓股票明细,包括股票代码、名称、持仓市值、占净值比例

4. 基金估值

同时显示官方估值和自定义估值(根据持仓股实时计算)

5. 基金持仓汇总

汇总多个基金的持仓,按股票占比排行,包含最新价和涨跌幅

6. 基金列表

按类型筛选基金(股票型、混合型、债券型、ETF等)

使用命令

# 基金基本信息(支持多个)
python fund_cli.py info --list 018957 161725

# 基金净值(支持多个,自动判断交易时间)
python fund_cli.py nav --list 018957 161725

# 基金持仓
python fund_cli.py holdings --list 018957

# 基金估值
python fund_cli.py estimate --list 018957

# 基金持仓汇总排行(核心功能)
python fund_cli.py summary --list 018957 161725 260108

# 基金列表
python fund_cli.py list --type 股票型

规则说明

所有数据接口均自动区分交易时间(9:30-15:00,周一至周五):

功能交易时间非交易时间
基金净值实时估算净值历史净值
基金估值自定义估算官方+自定义
持仓汇总含实时涨跌幅无涨跌幅

持仓汇总输出字段

  • 股票代码
  • 股票名称
  • 总占比(多只基金合计)
  • 最新价
  • 平均涨跌幅
  • 出现次数

注意事项

  1. 数据仅供研究参考,不构成投资建议
  2. 基金持仓为季度披露,存在时滞
  3. 接口可能因目标网站变动而失效

Comments

Loading comments...