← 返回 Skills 市场
zh40

A股港股股票分析

作者 zh4o · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
154
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install a-h-stock-analysis
功能描述
A股和港股股票数据分析工具,优先使用Tushare数据,Tushare不可用时自动回退到AKShare获取行情、财务指标,支持基本面分析和技术分析。
使用说明 (SKILL.md)

A股港股股票分析

基于Tushare + AKShare双数据源的A股和港股股票基本面、技术面分析。

  • 优先使用Tushare:如果配置了Tushare Token且能正常访问,用Tushare数据
  • 自动回退AKShare:Tushare不可用、没Token或请求失败时自动切AKShare公开数据源

前置准备

  1. 推荐配置Tushare:访问 https://tushare.pro/ 注册并获取Token,设置环境变量 TUSHARE_TOKEN=你的token
  2. AKShare不需要Token:直接可用,不需要注册

功能

  • 获取个股基本信息
  • 获取历史行情数据
  • 财务指标分析(Tushare优先)
  • 技术指标计算(MA、MACD、RSI等)
  • 支持A股(沪/深/北)和港股

使用

安装依赖

# 需要Python 3和tushare库
pip install tushare pandas numpy

获取股票基本信息

scripts/get_basic.py --code \x3C股票代码>

股票代码规则:

  • A股:直接使用6位代码 (e.g., 000001 平安银行)
  • 港股:使用5位代码 (e.g., 00700 腾讯控股)

获取历史行情

scripts/get_historical.py --code \x3C股票代码> --start \x3CYYYYMMDD> --end \x3CYYYYMMDD>

基本面分析

scripts/fundamental_analysis.py --code \x3C股票代码>

参考

安全使用建议
This skill appears to do what it says: fetch stock data from Tushare (if you provide TUSHARE_TOKEN) and fall back to AKShare. Before installing/running: (1) install dependencies in a virtual environment and include akshare (requirements.txt lists akshare but the README pip example omits it); (2) only set TUSHARE_TOKEN if you trust the environment — the token is used to call the official Tushare API; (3) review/verify pip package sources (install from PyPI or your trusted mirror); (4) if you run this in a shared environment, avoid exposing sensitive tokens—the scripts make network calls to Tushare/AKShare and print results but do not contain obfuscated or exfiltration code. The main issues are documentation/metadata mismatches (missing env var declaration and incomplete install instructions), not malicious behavior.
功能分析
Type: OpenClaw Skill Name: a-h-stock-analysisi Version: 1.0.0 The skill bundle is a legitimate stock analysis tool for A-shares and Hong Kong stocks using the Tushare and AKShare APIs. The code in scripts like `fundamental_analysis.py` and `utils.py` follows standard practices for financial data retrieval, including the use of environment variables for API tokens and fallback logic between data sources. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (stock analysis using Tushare/AKShare) match the included scripts and requirements. The scripts implement basic info, historical data, fundamental and technical analysis as described.
Instruction Scope
Runtime instructions are limited to installing Python packages, setting TUSHARE_TOKEN (optional), and running the provided scripts. They do not ask to read unrelated files or send data to unknown endpoints. Minor issue: SKILL.md's installation example omits akshare even though the code falls back to AKShare; also the package list in requirements.txt includes akshare but SKILL.md's pip line does not.
Install Mechanism
This is instruction-only with bundled Python scripts and a requirements.txt — no remote downloads or custom install hooks. Risk is typical for pip-installed packages; user should install from official package index. No install spec exists in the registry metadata.
Credentials
The code optionally reads TUSHARE_TOKEN from the environment to access Tushare; that is proportionate to the stated purpose. Metadata, however, lists no required env vars while SKILL.md instructs setting TUSHARE_TOKEN — a documentation mismatch but not a sign of excessive privilege.
Persistence & Privilege
Skill does not request persistent or elevated platform privileges (always is false), does not modify other skills, and does not write global agent config. It only reads an optional Tushare token from the environment and performs normal network calls to the data providers.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install a-h-stock-analysis
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /a-h-stock-analysis 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
A股和港股股票数据分析工具,支持Tushare/AKShare双数据源,提供基本面和技术面分析
元数据
Slug a-h-stock-analysis
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

A股港股股票分析 是什么?

A股和港股股票数据分析工具,优先使用Tushare数据,Tushare不可用时自动回退到AKShare获取行情、财务指标,支持基本面分析和技术分析。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。

如何安装 A股港股股票分析?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-h-stock-analysis」即可一键安装,无需额外配置。

A股港股股票分析 是免费的吗?

是的,A股港股股票分析 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

A股港股股票分析 支持哪些平台?

A股港股股票分析 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 A股港股股票分析?

由 zh4o(@zh40)开发并维护,当前版本 v1.0.0。

💬 留言讨论