Weaxs/stock-analysis-plugin
stock-analysis-plugin
Stock analysis extension for Pi Agent — lightweight market data tools + strategy skills
Install
npx @deepseek-ai/dsh plugin --profile <profile> add @weaxs/dsh-stock-analysis`Restart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/stock-analysis-plugin)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from Weaxs/stock-analysis-plugin, cleaned of badges and images.
stock-analysis-plugin
A 股 / 港股 / 美股 / 日股 / 韩股 / 台股综合分析、多因子选股和策略回测工具集,可作为 Pi Agent Extension、Hermes Agent Plugin、OpenClaw Plugin,或 DeepSeek Harness (dsh) Plugin 使用。
底层共享同一套 Python CLI 工具和 SKILL.md 工作流,上层分别适配四个平台的注册机制。
目录
功能概览
- 39 个工具 — 行情数据、技术分析、K 线形态、资金流向、财务指标、新闻舆情、风险筛查、市场状态等
- 20 个 Skills — 综合分析、全市场选股、策略回测 + 17 个策略方法论(缠论、波浪、龙头、情绪周期等)
- 策略回测引擎 — YAML DSL 定义策略,参数化条件组合,自动诊断 + LLM 变异优化
- 多数据源 Failover — 9 个数据源自动容灾切换(akshare / tushare / efinance / pytdx / baostock / yfinance / finnhub / longbridge / alphavantage)
- 社交舆情增强 — A 股(东财股吧 + 雪球)/ 美港股(Reddit / X / Polymarket),市场自动路由
- 四平台适配 — 同一套工具同时支持 Pi Agent、Hermes Agent、OpenClaw 和 dsh
安装
所有 npm 包同时以 scoped(
@weaxs/*)和非 scoped 同名两种名字发布,内容一致,任选其一即可。
插件包地址:
| 平台 | 包名 | 地址 | 安装命令 |
|---|---|---|---|
| Pi Agent | @weaxs/stock-analysis-plugin(或 stock-analysis-plugin) | npm | npm install @weaxs/stock-analysis-plugin |
| Hermes Agent | stock-analysis-plugin | PyPI | pip install stock-analysis-plugin |
| OpenClaw | @weaxs/openclaw-stock-analysis(或 openclaw-stock-analysis) | npm | openclaw plugins install clawhub:@weaxs/openclaw-stock-analysis |
| DeepSeek Harness (dsh) | @weaxs/dsh-stock-analysis(或 dsh-stock-analysis) | npm | dsh plugin --profile <profile> add @weaxs/dsh-stock-analysis |
各平台的详细安装步骤见下方对应小节。
Pi Agent Extension
# 全局安装
cd ~/.pi/agent/extensions
npm install @weaxs/stock-analysis-plugin
# 或项目级安装
mkdir -p .pi/extensions && cd .pi/extensions
npm install @weaxs/stock-analysis-plugin
也可以直接
git clone [email protected]:Weaxs/stock-analysis-plugin.git使用源码版本。
Pi 启动后自动加载,输入 /skills 确认。详见 Pi Agent 接入指南(English)。
Hermes Agent Plugin
pip install stock-analysis-plugin
安装后 Hermes 通过 hermes_agent.plugins entry point 自动发现并注册,无需手动复制目录。
或在 Python 中直接注册:
from hermes import register
register(ctx)
详见 Hermes Agent 接入指南(English)。
OpenClaw Plugin
openclaw plugins install clawhub:@weaxs/openclaw-stock-analysis
OpenClaw Gateway 启动后自动加载并注册 39 个 tool。安装时 postinstall 会自动建 .venv 并装好 Python 依赖(前提:本机有 python3 >= 3.9)。
详见 OpenClaw 接入指南,或 plugin 自身说明 openclaw/README.md。
dsh (DeepSeek Harness) Plugin
dsh plugin --profile <你的profile> add @weaxs/dsh-stock-analysis
dsh --profile <你的profile>
…
