@weaxs/openclaw-stock-analysis 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/index.ts +761 -0
- package/openclaw.plugin.json +47 -0
- package/package.json +46 -0
- package/schemas/report_schema.json +131 -0
- package/scripts/setup-python.mjs +52 -0
- package/skills/bottom-volume/SKILL.md +63 -0
- package/skills/bottom-volume/scripts/gather.py +15 -0
- package/skills/box-oscillation/SKILL.md +72 -0
- package/skills/box-oscillation/scripts/gather.py +15 -0
- package/skills/bull-trend/SKILL.md +60 -0
- package/skills/bull-trend/scripts/gather.py +15 -0
- package/skills/chan-theory/SKILL.md +71 -0
- package/skills/chan-theory/scripts/gather.py +15 -0
- package/skills/dragon-head/SKILL.md +69 -0
- package/skills/dragon-head/scripts/gather.py +15 -0
- package/skills/emotion-cycle/SKILL.md +65 -0
- package/skills/emotion-cycle/scripts/gather.py +15 -0
- package/skills/event-driven/SKILL.md +73 -0
- package/skills/event-driven/scripts/gather.py +15 -0
- package/skills/expectation-repricing/SKILL.md +72 -0
- package/skills/expectation-repricing/scripts/gather.py +15 -0
- package/skills/growth-quality/SKILL.md +74 -0
- package/skills/growth-quality/scripts/gather.py +15 -0
- package/skills/hot-theme/SKILL.md +74 -0
- package/skills/hot-theme/scripts/gather.py +15 -0
- package/skills/ma-crossover/SKILL.md +63 -0
- package/skills/ma-crossover/scripts/gather.py +15 -0
- package/skills/market-review/SKILL.md +70 -0
- package/skills/market-review/scripts/gather.py +16 -0
- package/skills/one-yang-three-yin/SKILL.md +74 -0
- package/skills/one-yang-three-yin/scripts/gather.py +15 -0
- package/skills/shrink-pullback/SKILL.md +59 -0
- package/skills/shrink-pullback/scripts/gather.py +15 -0
- package/skills/stock-analysis/SKILL.md +134 -0
- package/skills/stock-analysis/scripts/gather.py +15 -0
- package/skills/stock-screener/SKILL.md +68 -0
- package/skills/stock-screener/scripts/gather.py +15 -0
- package/skills/strategy-backtest/SKILL.md +129 -0
- package/skills/strategy-backtest/scripts/gather.py +16 -0
- package/skills/volume-breakout/SKILL.md +58 -0
- package/skills/volume-breakout/scripts/gather.py +15 -0
- package/skills/wave-theory/SKILL.md +67 -0
- package/skills/wave-theory/scripts/gather.py +15 -0
- package/skills/wisburg-research/SKILL.md +119 -0
- package/strategies/examples/bottom_volume.yaml +47 -0
- package/strategies/examples/box_oscillation.yaml +41 -0
- package/strategies/examples/bull_trend.yaml +42 -0
- package/strategies/examples/dragon_head.yaml +45 -0
- package/strategies/examples/emotion_cycle.yaml +43 -0
- package/strategies/examples/ma_crossover.yaml +34 -0
- package/strategies/examples/rsi_oversold.yaml +35 -0
- package/strategies/examples/shrink_pullback.yaml +45 -0
- package/strategies/examples/volume_breakout.yaml +42 -0
- package/tools/__init__.py +0 -0
- package/tools/anomaly_detect.py +570 -0
- package/tools/backtest.py +643 -0
- package/tools/gather.py +152 -0
- package/tools/market_regime.py +247 -0
- package/tools/market_review.py +150 -0
- package/tools/name_resolver.py +131 -0
- package/tools/pattern.py +509 -0
- package/tools/requirements.txt +13 -0
- package/tools/risk_screening.py +318 -0
- package/tools/screener.py +213 -0
- package/tools/search_intel.py +455 -0
- package/tools/stock_data.py +1649 -0
- package/tools/technical.py +636 -0
- package/tools/trading_calendar.py +198 -0
- package/tools/volume_analysis.py +172 -0
- package/tools/watchlist.py +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Stock Analysis — OpenClaw Plugin
|
|
2
|
+
|
|
3
|
+
A股 / 港股 / 美股 行情、技术分析、筛选与回测。OpenClaw Gateway 加载后即可在对话中调用 31 个工具。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
openclaw plugins install clawhub:@weaxs/openclaw-stock-analysis
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
或从源码(仓库根目录):
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install
|
|
15
|
+
# OpenClaw Gateway 自行加载 ./openclaw/openclaw.plugin.json
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Python 运行时
|
|
19
|
+
|
|
20
|
+
工具实际逻辑在 `tools/*.py`,依赖 `akshare`、`pandas`、`numpy`、`requests`。仓库根 `package.json` 的 postinstall(`scripts/setup-python.mjs`)会自动建 `.venv` 并装好依赖,无需手工操作。前提:本机有 `python3 >= 3.9`。
|
|
21
|
+
|
|
22
|
+
如果 venv 没建起来(比如 Python 缺失),plugin 会回退到系统 `python3`,请自行 `pip install -r tools/requirements.txt`。
|
|
23
|
+
|
|
24
|
+
## 工具列表
|
|
25
|
+
|
|
26
|
+
### 行情数据
|
|
27
|
+
- `get_kline` — K线 OHLCV(A/HK/US)
|
|
28
|
+
- `get_quote` — 实时报价
|
|
29
|
+
- `get_capital_flow` — A股资金流(个股 / 多日 / 板块)
|
|
30
|
+
- `get_news` — 财经新闻
|
|
31
|
+
- `get_financials` — 关键财务指标
|
|
32
|
+
|
|
33
|
+
### 分析
|
|
34
|
+
- `get_technical_analysis` — MA/MACD/RSI/BOLL/KDJ + 综合评分
|
|
35
|
+
- `analyze_pattern` — 12+ 种 K 线形态识别
|
|
36
|
+
- `calculate_ma` — 独立均线计算
|
|
37
|
+
- `get_volume_analysis` — 量价分析
|
|
38
|
+
|
|
39
|
+
### 市场全景
|
|
40
|
+
- `get_market_indices` — 主要指数(CN/HK/US)
|
|
41
|
+
- `get_sector_rankings` — A股板块涨跌幅排行
|
|
42
|
+
- `get_market_stats` — A股大盘统计
|
|
43
|
+
- `get_stock_info` — 股票基本信息
|
|
44
|
+
- `get_chip_distribution` — A股筹码分布
|
|
45
|
+
- `get_fundamental_context` — A股深度基本面
|
|
46
|
+
- `detect_market_regime` — 市场阶段检测
|
|
47
|
+
- `get_market_review` — 大盘日度复盘
|
|
48
|
+
|
|
49
|
+
### 筛选与回测
|
|
50
|
+
- `screen_stocks` — 全市场多因子筛选(AlphaSift L1)
|
|
51
|
+
- `run_backtest` — 策略回测(AlphaEvo)
|
|
52
|
+
- `evaluate_signal` — 信号历史准确率
|
|
53
|
+
- `screen_risk` — 7维度风险筛查
|
|
54
|
+
- `run_watchlist_analysis` — 自选股批量分析
|
|
55
|
+
- `detect_anomaly` — 异动信号扫描
|
|
56
|
+
|
|
57
|
+
### 工具类
|
|
58
|
+
- `resolve_stock_name` — A股名称/拼音 → 代码
|
|
59
|
+
- `check_trading_day` / `get_trading_days` — 交易日历
|
|
60
|
+
|
|
61
|
+
### 情报搜索(需 API Key)
|
|
62
|
+
- `search_stock_news` — Tavily/Brave/SerpAPI 新闻搜索
|
|
63
|
+
- `search_comprehensive_intel` — 6 维度综合情报
|
|
64
|
+
- `get_social_sentiment` — Reddit/X/Polymarket 情绪
|
|
65
|
+
- `get_trending_sentiment` — 社交热门趋势
|
|
66
|
+
- `extract_article` — 文章正文提取
|
|
67
|
+
|
|
68
|
+
## 平行 Host
|
|
69
|
+
|
|
70
|
+
同一份业务逻辑也以 [Pi Agent extension](../pi/index.ts) 和 [Hermes plugin](../hermes/) 形式分发;选你用的那个生态即可。
|