← Back to Skills Marketplace
zh40

A股港股股票分析

by zh4o · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
154
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install a-h-stock-analysis
Description
A股和港股股票数据分析工具,优先使用Tushare数据,Tushare不可用时自动回退到AKShare获取行情、财务指标,支持基本面分析和技术分析。
README (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股票代码>

参考

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install a-h-stock-analysis
  3. After installation, invoke the skill by name or use /a-h-stock-analysis
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
A股和港股股票数据分析工具,支持Tushare/AKShare双数据源,提供基本面和技术面分析
Metadata
Slug a-h-stock-analysis
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is A股港股股票分析?

A股和港股股票数据分析工具,优先使用Tushare数据,Tushare不可用时自动回退到AKShare获取行情、财务指标,支持基本面分析和技术分析。 It is an AI Agent Skill for Claude Code / OpenClaw, with 154 downloads so far.

How do I install A股港股股票分析?

Run "/install a-h-stock-analysis" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is A股港股股票分析 free?

Yes, A股港股股票分析 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does A股港股股票分析 support?

A股港股股票分析 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created A股港股股票分析?

It is built and maintained by zh4o (@zh40); the current version is v1.0.0.

💬 Comments