/install a-h-stock-analysis
A股港股股票分析
基于Tushare + AKShare双数据源的A股和港股股票基本面、技术面分析。
- 优先使用Tushare:如果配置了Tushare Token且能正常访问,用Tushare数据
- 自动回退AKShare:Tushare不可用、没Token或请求失败时自动切AKShare公开数据源
前置准备
- 推荐配置Tushare:访问 https://tushare.pro/ 注册并获取Token,设置环境变量
TUSHARE_TOKEN=你的token - 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股票代码>
参考
- Tushare API文档 - 常用API说明
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install a-h-stock-analysis - After installation, invoke the skill by name or use
/a-h-stock-analysis - Provide required inputs per the skill's parameter spec and get structured output
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.