
Akshare Stock
This is a comprehensive Chinese A-share stock analysis tool that connects AKShare's financial data APIs to natural language queries. It handles real-time market data, technical analysis, fundamental metrics, sector rotation, and cross-market instruments like futures and bonds. The four-layer architecture (router, service, analyzer, formatter) intelligently parses queries like "茅台近60日K线" or "今日涨停统计" and returns formatted analysis optimized for QQ and Telegram. Built for Chinese stock traders who want quick market insights without manual data pulls. The natural language routing is solid, though you'll need to adapt the AKShare adapter layer as their APIs evolve. Caching strategy keeps data fresh without hammering endpoints.
- skills.sh installs
- 11.2K
- GitHub stars
- 15
- last updated
- Jul 14, 2026
Install
$ npx -y skills add molezzz/openclaw-stock-skill --skill akshare-stock --agent claude-codeInstalls into .claude/skills of the current project.
Files
A股分析全能 Skill(AKShare)
目标:在 OpenClaw 中通过自然语言触发 A 股和相关市场分析,输出适配 QQ/Telegram 的紧凑文本。
- 运行环境:Mac + Python 3.9
- akshare 路径:
/Users/molezz/Library/Python/3.9/lib/python3.9/site-packages - Skill 入口建议:
python3 skills/akshare-stock/main.py --query "${USER_QUERY}"
1) 整体架构设计
采用 Router -> Service -> Analyzer -> Formatter 四层结构,便于扩展和维护。
A. 目录组织(建议)
skills/akshare-stock/
SKILL.md
main.py # OpenClaw 调用入口
router.py # 意图识别 + 参数解析
schemas.py # 数据结构定义(dataclass)
formatter.py # QQ/Telegram 输出模板
services/
market_service.py # 大盘/个股行情、K线、分时、涨跌停、资金流
fundamental_service.py# 财务指标、财报、融资融券、龙虎榜
sector_service.py # 行业/概念板块、轮动、板块资金流
cross_service.py # 期货/期权、基金、可转债、港股/美股
analyzers/
kline_analyzer.py # 均线、振幅、涨跌幅、量比等
flow_analyzer.py # 主力净流入、连续性、强弱排序
rotation_analyzer.py # 板块轮动强度、持续性
adapters/
akshare_adapter.py # 封装 akshare 接口,隔离 API 变化
utils/
trading_calendar.py # 交易日判断
symbols.py # 指数/股票/板块别名映射
cache.py # 短缓存(30~120 秒)
B. 核心流程
Sponsors
Details
- Repository
- github.com/molezzz/openclaw-stock-skill
- Category
- Finance & Trading