@weaxs/openclaw-stock-analysis 0.1.13 → 0.1.15
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/dist/index.js +25 -25
- package/index.ts +25 -25
- package/package.json +1 -1
- package/skills/bottom-volume/SKILL.md +1 -4
- package/skills/bottom-volume/scripts/gather.py +1 -1
- package/skills/box-oscillation/SKILL.md +1 -4
- package/skills/box-oscillation/scripts/gather.py +1 -1
- package/skills/bull-trend/SKILL.md +1 -4
- package/skills/bull-trend/scripts/gather.py +1 -1
- package/skills/chan-theory/SKILL.md +1 -4
- package/skills/chan-theory/scripts/gather.py +1 -1
- package/skills/dragon-head/SKILL.md +22 -28
- package/skills/dragon-head/scripts/gather.py +1 -1
- package/skills/emotion-cycle/SKILL.md +17 -33
- package/skills/emotion-cycle/scripts/gather.py +4 -3
- package/skills/event-driven/SKILL.md +42 -26
- package/skills/event-driven/scripts/gather.py +1 -1
- package/skills/expectation-repricing/SKILL.md +11 -6
- package/skills/expectation-repricing/scripts/gather.py +1 -1
- package/skills/growth-quality/SKILL.md +11 -6
- package/skills/growth-quality/scripts/gather.py +1 -1
- package/skills/hot-theme/SKILL.md +25 -22
- package/skills/hot-theme/scripts/gather.py +1 -1
- package/skills/ma-crossover/SKILL.md +1 -4
- package/skills/ma-crossover/scripts/gather.py +1 -1
- package/skills/market-review/SKILL.md +11 -8
- package/skills/market-review/scripts/gather.py +1 -1
- package/skills/one-yang-three-yin/SKILL.md +1 -4
- package/skills/one-yang-three-yin/scripts/gather.py +1 -1
- package/skills/shrink-pullback/SKILL.md +1 -4
- package/skills/shrink-pullback/scripts/gather.py +1 -1
- package/skills/stock-analysis/SKILL.md +12 -79
- package/skills/stock-analysis/references/short-term-trading.md +78 -0
- package/skills/stock-analysis/scripts/gather.py +1 -1
- package/skills/stock-screener/SKILL.md +7 -6
- package/skills/stock-screener/scripts/gather.py +1 -1
- package/skills/strategy-backtest/SKILL.md +24 -20
- package/skills/strategy-backtest/scripts/gather.py +1 -1
- package/skills/volume-breakout/SKILL.md +21 -23
- package/skills/volume-breakout/scripts/gather.py +1 -1
- package/skills/wave-theory/SKILL.md +1 -4
- package/skills/wave-theory/scripts/gather.py +1 -1
- package/skills/wisburg-research/SKILL.md +2 -2
- package/tools/_subproc.py +18 -5
- package/tools/alert_rules.py +1 -20
- package/tools/capabilities.py +3 -4
- package/tools/diagnostics.py +13 -2
- package/tools/gather.py +7 -21
- package/tools/market_regime.py +4 -1
- package/tools/position_context.py +1 -19
- package/tools/stock_data.py +317 -75
- package/tools/watchlist_context.py +1 -19
package/dist/index.js
CHANGED
|
@@ -4488,7 +4488,7 @@ var index_default = definePluginEntry({
|
|
|
4488
4488
|
name: "get_quote",
|
|
4489
4489
|
description: "\u83B7\u53D6\u80A1\u7968\u5B9E\u65F6\u884C\u60C5\u62A5\u4EF7\uFF08\u73B0\u4EF7\u3001\u6DA8\u8DCC\u5E45\u3001\u91CF\u6BD4\u7B49\uFF09\u3002\u652F\u6301A\u80A1\u3001\u6E2F\u80A1\u3001\u7F8E\u80A1\u3001\u65E5\u80A1\u3001\u97E9\u80A1\u3001\u53F0\u80A1",
|
|
4490
4490
|
parameters: typebox_exports.Object({
|
|
4491
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" })
|
|
4491
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" })
|
|
4492
4492
|
}),
|
|
4493
4493
|
async execute(_id, params) {
|
|
4494
4494
|
const out = await runPy("stock_data.py", ["quote", params.symbol]);
|
|
@@ -4525,7 +4525,7 @@ var index_default = definePluginEntry({
|
|
|
4525
4525
|
name: "get_news",
|
|
4526
4526
|
description: "\u83B7\u53D6\u4E2A\u80A1\u6700\u8FD1N\u5929\u8D22\u7ECF\u65B0\u95FB\u5FEB\u8BAF\uFF08\u8F7B\u91CF\u3001\u65E0\u9700\u914D\u7F6E\uFF09\u3002\u9700\u8981\u6DF1\u5EA6\u5168\u7F51\u60C5\u62A5\u7528 search_comprehensive_intel\uFF0C\u6309\u4E3B\u9898\u641C\u7D22\u7528 search_stock_news\uFF0C\u8BFB\u6587\u7AE0\u5168\u6587\u7528 extract_article",
|
|
4527
4527
|
parameters: typebox_exports.Object({
|
|
4528
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4528
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4529
4529
|
days: typebox_exports.Optional(
|
|
4530
4530
|
typebox_exports.Number({ description: "\u83B7\u53D6\u6700\u8FD1\u51E0\u5929\u7684\u65B0\u95FB\uFF0C\u9ED8\u8BA4 3" })
|
|
4531
4531
|
)
|
|
@@ -4542,9 +4542,9 @@ var index_default = definePluginEntry({
|
|
|
4542
4542
|
});
|
|
4543
4543
|
api.registerTool({
|
|
4544
4544
|
name: "get_financials",
|
|
4545
|
-
description: "\u83B7\u53D6\u80A1\u7968\
|
|
4545
|
+
description: "\u83B7\u53D6\u80A1\u7968\u8D22\u52A1\u6458\u8981\u3002A\u80A1\u8FD4\u56DE\u6700\u65B0\u62A5\u544A\u671F ROE/\u6BDB\u5229\u7387/\u51C0\u5229\u7387/\u8D1F\u503A\u7387/\u6D41\u52A8\u6BD4\u7387\uFF1B\u5176\u4ED6\u5E02\u573A\u8FD4\u56DE PE/PB/\u5E02\u503C/\u8425\u6536/\u51C0\u5229\u6DA6\u7B49\u3002A\u80A1\u4F30\u503C\u3001\u6210\u957F\u548C\u5206\u7EA2\u7528 get_fundamental_context",
|
|
4546
4546
|
parameters: typebox_exports.Object({
|
|
4547
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" })
|
|
4547
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" })
|
|
4548
4548
|
}),
|
|
4549
4549
|
async execute(_id, params) {
|
|
4550
4550
|
const out = await runPy("stock_data.py", ["financials", params.symbol]);
|
|
@@ -4555,7 +4555,7 @@ var index_default = definePluginEntry({
|
|
|
4555
4555
|
name: "get_technical_analysis",
|
|
4556
4556
|
description: "\u83B7\u53D6\u80A1\u7968\u6280\u672F\u9762\u5206\u6790\uFF08MA/MACD/RSI/BOLL/KDJ/\u6210\u4EA4\u91CF\u7B49\u6307\u6807 + 100\u5206\u7EFC\u5408\u8BC4\u5206 + 6\u7EA7\u4E70\u5356\u4FE1\u53F7 + \u8D8B\u52BF/\u504F\u79BB\u5EA6/\u652F\u6491\u538B\u529B\u4F4D\uFF09\u3002\u4E2A\u80A1\u6280\u672F\u9762\u7EFC\u5408\u5224\u65AD\u4E0E\u4E70\u5356\u65F6\u673A\u5206\u6790\u7684\u9996\u9009\uFF1B\u53EA\u8981\u5747\u7EBF\u6570\u503C\u6216\u81EA\u5B9A\u4E49\u5468\u671F\u7528 calculate_ma\uFF0C\u4E13\u95EE\u91CF\u4EF7\u7528 get_volume_analysis\uFF0C\u626B\u5F53\u65E5\u5F02\u52A8\u7528 detect_anomaly",
|
|
4557
4557
|
parameters: typebox_exports.Object({
|
|
4558
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4558
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4559
4559
|
period: typebox_exports.Optional(
|
|
4560
4560
|
typebox_exports.Union(
|
|
4561
4561
|
[typebox_exports.Literal("daily"), typebox_exports.Literal("weekly"), typebox_exports.Literal("monthly")],
|
|
@@ -4582,7 +4582,7 @@ var index_default = definePluginEntry({
|
|
|
4582
4582
|
name: "analyze_pattern",
|
|
4583
4583
|
description: "K\u7EBF\u5F62\u6001\u8BC6\u522B \u2014 \u68C0\u6D4B\u5341\u5B57\u661F\u3001\u9524\u5B50\u7EBF\u3001\u541E\u6CA1\u3001\u542F\u660E\u661F\u3001\u9EC4\u660F\u661F\u3001\u53CC\u5E95\u300120\u65E5\u7A81\u7834\u7B4912+\u79CD\u7ECF\u5178\u5F62\u6001\u3002\u7EFC\u5408\u6280\u672F\u9762\u5224\u65AD\u7528 get_technical_analysis",
|
|
4584
4584
|
parameters: typebox_exports.Object({
|
|
4585
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4585
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4586
4586
|
period: typebox_exports.Optional(
|
|
4587
4587
|
typebox_exports.Union(
|
|
4588
4588
|
[typebox_exports.Literal("daily"), typebox_exports.Literal("weekly"), typebox_exports.Literal("monthly")],
|
|
@@ -4690,7 +4690,7 @@ var index_default = definePluginEntry({
|
|
|
4690
4690
|
name: "get_stock_info",
|
|
4691
4691
|
description: "\u83B7\u53D6\u80A1\u7968\u57FA\u672C\u4FE1\u606F\uFF08\u884C\u4E1A\u3001\u677F\u5757\u3001\u4E0A\u5E02\u65E5\u671F\u3001\u603B\u80A1\u672C\u7B49\uFF09\u3002A\u80A1\u8FD4\u56DE\u677F\u5757/\u884C\u4E1A\uFF0C\u5176\u4ED6\u5E02\u573A\u8FD4\u56DE\u884C\u4E1A/\u516C\u53F8\u7B80\u4ECB",
|
|
4692
4692
|
parameters: typebox_exports.Object({
|
|
4693
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" })
|
|
4693
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" })
|
|
4694
4694
|
}),
|
|
4695
4695
|
async execute(_id, params) {
|
|
4696
4696
|
const out = await runPy("stock_data.py", ["stock_info", params.symbol]);
|
|
@@ -4730,7 +4730,7 @@ var index_default = definePluginEntry({
|
|
|
4730
4730
|
});
|
|
4731
4731
|
api.registerTool({
|
|
4732
4732
|
name: "get_fundamental_context",
|
|
4733
|
-
description: "\u83B7\u53D6A\u80A1\
|
|
4733
|
+
description: "\u83B7\u53D6A\u80A1\u57FA\u672C\u9762\u4E0A\u4E0B\u6587\uFF08\u4F30\u503C PE/PB/\u5E02\u503C + \u8425\u6536/\u51C0\u5229\u589E\u901F + ROE/\u6BDB\u5229\u7387/\u51C0\u5229\u7387 + \u5206\u7EA2\u5386\u53F2\uFF09\u3002\u7528\u4E8E\u8BC4\u4F30\u516C\u53F8\u8D28\u5730\u4E0E\u957F\u671F\u6301\u6709\u4EF7\u503C",
|
|
4734
4734
|
parameters: typebox_exports.Object({
|
|
4735
4735
|
symbol: typebox_exports.String({ description: "A\u80A1\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519" })
|
|
4736
4736
|
}),
|
|
@@ -4756,7 +4756,7 @@ var index_default = definePluginEntry({
|
|
|
4756
4756
|
typebox_exports.Number({ description: "\u8FD4\u56DE\u6392\u540D\u524DN\u7684\u80A1\u7968\uFF0C\u9ED8\u8BA4 20" })
|
|
4757
4757
|
),
|
|
4758
4758
|
config: typebox_exports.Optional(
|
|
4759
|
-
typebox_exports.String({ description: "\u81EA\u5B9A\u4E49\u7B5B\u9009\u914D\u7F6EYAML\u6587\u4EF6\u8DEF\u5F84\
|
|
4759
|
+
typebox_exports.String({ description: "\u81EA\u5B9A\u4E49\u7B5B\u9009\u914D\u7F6EYAML\u6587\u4EF6\u8DEF\u5F84\uFF0C\u4E0D\u586B\u7528\u9ED8\u8BA4\u914D\u7F6E" })
|
|
4760
4760
|
),
|
|
4761
4761
|
l2: typebox_exports.Optional(
|
|
4762
4762
|
typebox_exports.Boolean({ description: "\u5F00\u542FL2\u91CF\u5316\u589E\u5F3A\uFF08\u8D28\u91CF/\u6210\u957F/\u771F\u5B9E\u52A8\u91CF/\u6CE2\u52A8\u7387/\u8D44\u91D1\u6D41\u56E0\u5B50\uFF0C\u9010\u80A1\u6293\u53D6\u6570\u636E\u8F83\u6162\uFF09\uFF0C\u9ED8\u8BA4\u5173\u95ED" })
|
|
@@ -4781,7 +4781,7 @@ var index_default = definePluginEntry({
|
|
|
4781
4781
|
description: "\u7B56\u7565\u56DE\u6D4B\uFF08AlphaEvo\uFF09\u3002\u8BFB\u53D6YAML\u7B56\u7565\u5B9A\u4E49\uFF0C\u5728\u5386\u53F2\u6570\u636E\u4E0A\u6A21\u62DF\u4EA4\u6613\uFF0C\u8F93\u51FA\u6536\u76CA\u7387/\u56DE\u64A4/\u80DC\u7387\u7B49\u6307\u6807\u3002\u53EA\u60F3\u77E5\u9053\u5355\u4E2A\u6280\u672F\u4FE1\u53F7\u7684\u5386\u53F2\u80DC\u7387\u7528\u66F4\u8F7B\u91CF\u7684 evaluate_signal",
|
|
4782
4782
|
parameters: typebox_exports.Object({
|
|
4783
4783
|
strategy: typebox_exports.String({ description: "\u7B56\u7565YAML\u6587\u4EF6\u8DEF\u5F84" }),
|
|
4784
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4784
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4785
4785
|
start: typebox_exports.Optional(
|
|
4786
4786
|
typebox_exports.String({ description: "\u56DE\u6D4B\u8D77\u59CB\u65E5\u671F\uFF0C\u683C\u5F0F YYYY-MM-DD" })
|
|
4787
4787
|
),
|
|
@@ -4805,7 +4805,7 @@ var index_default = definePluginEntry({
|
|
|
4805
4805
|
name: "evaluate_signal",
|
|
4806
4806
|
description: "\u6280\u672F\u4FE1\u53F7\u5386\u53F2\u51C6\u786E\u7387\u8BC4\u4F30 \u2014 \u56DE\u6EAF\u5386\u53F2\u6570\u636E\uFF0C\u7EDF\u8BA1\u67D0\u4E2A\u6280\u672F\u4FE1\u53F7\u89E6\u53D1\u540EN\u65E5\u7684\u80DC\u7387\u548C\u5E73\u5747\u6536\u76CA\u3002\u652F\u63019\u79CD\u4FE1\u53F7\uFF1Amacd_golden_cross/macd_death_cross/rsi_oversold/rsi_overbought/breakout_20d/breakdown_20d/volume_surge/ma_golden_cross/ma_death_cross\u3002\u8981\u5B8C\u6574\u6A21\u62DF\u4EA4\u6613\u8FC7\u7A0B\u7528 run_backtest",
|
|
4807
4807
|
parameters: typebox_exports.Object({
|
|
4808
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4808
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4809
4809
|
signal: typebox_exports.Union(
|
|
4810
4810
|
[
|
|
4811
4811
|
typebox_exports.Literal("macd_golden_cross"),
|
|
@@ -4916,7 +4916,7 @@ var index_default = definePluginEntry({
|
|
|
4916
4916
|
name: "calculate_ma",
|
|
4917
4917
|
description: "\u72EC\u7ACB\u5747\u7EBF\u8BA1\u7B97\u5668 \u2014 \u652F\u6301\u4EFB\u610F\u5468\u671FMA\uFF085/10/20/30/60/120/250\u6216\u81EA\u5B9A\u4E49\uFF09+ \u504F\u79BB\u5EA6 + \u5747\u7EBF\u6392\u5217 + \u91D1\u53C9\u6B7B\u53C9\u68C0\u6D4B\u3002\u53EA\u8981\u5747\u7EBF\u6570\u503C\u6216\u9700\u898130/120/250\u7B49\u975E\u9ED8\u8BA4\u5468\u671F\u65F6\u7528\u672C\u5DE5\u5177\uFF1B\u7EFC\u5408\u6280\u672F\u9762\u5206\u6790\u7528 get_technical_analysis",
|
|
4918
4918
|
parameters: typebox_exports.Object({
|
|
4919
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4919
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4920
4920
|
periods: typebox_exports.Optional(
|
|
4921
4921
|
typebox_exports.String({
|
|
4922
4922
|
description: "\u9017\u53F7\u5206\u9694\u7684MA\u5468\u671F\u5217\u8868\uFF0C\u5982 5,10,20,60,120,250"
|
|
@@ -4947,7 +4947,7 @@ var index_default = definePluginEntry({
|
|
|
4947
4947
|
name: "get_volume_analysis",
|
|
4948
4948
|
description: "\u72EC\u7ACB\u91CF\u4EF7\u5206\u6790 \u2014 \u91CF\u4EF7\u76F8\u5173\u6027\u3001\u4E0A\u6DA8/\u4E0B\u8DCC\u65E5\u6210\u4EA4\u91CF\u5BF9\u6BD4\u3001\u91CF\u80FD\u8D8B\u52BF\u3001\u91CF\u4EF7\u6A21\u5F0F\u89E3\u8BFB\uFF08\u653E\u91CF\u4E0A\u6DA8/\u7F29\u91CF\u56DE\u8C03\u7B49\uFF09\u3002\u7EFC\u5408\u6280\u672F\u9762\u5224\u65AD\u7528 get_technical_analysis\uFF0C\u626B\u5F53\u65E5\u5F02\u52A8\u7528 detect_anomaly",
|
|
4949
4949
|
parameters: typebox_exports.Object({
|
|
4950
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4950
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4951
4951
|
period: typebox_exports.Optional(
|
|
4952
4952
|
typebox_exports.Union(
|
|
4953
4953
|
[typebox_exports.Literal("daily"), typebox_exports.Literal("weekly"), typebox_exports.Literal("monthly")],
|
|
@@ -4972,7 +4972,7 @@ var index_default = definePluginEntry({
|
|
|
4972
4972
|
});
|
|
4973
4973
|
api.registerTool({
|
|
4974
4974
|
name: "search_stock_news",
|
|
4975
|
-
description: "\u591A\u5F15\u64CE\u80A1\u7968\u65B0\u95FB\u641C\u7D22\
|
|
4975
|
+
description: "\u591A\u5F15\u64CE\u80A1\u7968\u65B0\u95FB\u641C\u7D22\uFF08Tavily/Brave/SerpAPI/Bocha/SearXNG\uFF09\u3002\u9700\u914D\u7F6E\u81F3\u5C11\u4E00\u4E2A\u641C\u7D22\u6E90\u7684 Key \u6216 SearXNG URL\u3002get_news \u5FEB\u8BAF\u4E0D\u591F\u6216\u8981\u6309\u4E3B\u9898\u641C\u7D22\u65F6\u7528\uFF1B\u6DF1\u5EA66\u7EF4\u60C5\u62A5\u7528 search_comprehensive_intel",
|
|
4976
4976
|
parameters: typebox_exports.Object({
|
|
4977
4977
|
query: typebox_exports.String({ description: "\u641C\u7D22\u5173\u952E\u8BCD" }),
|
|
4978
4978
|
count: typebox_exports.Optional(
|
|
@@ -4993,7 +4993,7 @@ var index_default = definePluginEntry({
|
|
|
4993
4993
|
name: "search_comprehensive_intel",
|
|
4994
4994
|
description: "\u80A1\u7968\u7EFC\u5408\u60C5\u62A5\u641C\u7D22 \u2014 \u4ECE6\u4E2A\u7EF4\u5EA6\uFF08\u65B0\u95FB/\u516C\u544A/\u884C\u60C5\u5206\u6790/\u98CE\u9669/\u4E1A\u7EE9/\u884C\u4E1A\uFF09\u641C\u7D22\u7EFC\u5408\u4FE1\u606F\u3002\u7528\u4E8E\u4E2A\u80A1\u7684\u6DF1\u5165\u7814\u7A76/\u5168\u9762\u8C03\u7814\uFF1B\u5FEB\u901F\u770B\u65B0\u95FB\u7528 get_news",
|
|
4995
4995
|
parameters: typebox_exports.Object({
|
|
4996
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
4996
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
4997
4997
|
name: typebox_exports.Optional(
|
|
4998
4998
|
typebox_exports.String({ description: "\u80A1\u7968\u540D\u79F0\uFF08\u53EF\u9009\uFF0C\u63D0\u5347\u641C\u7D22\u51C6\u786E\u5EA6\uFF09" })
|
|
4999
4999
|
)
|
|
@@ -5009,7 +5009,7 @@ var index_default = definePluginEntry({
|
|
|
5009
5009
|
name: "get_social_sentiment",
|
|
5010
5010
|
description: "\u83B7\u53D6\u80A1\u7968\u793E\u4EA4\u5A92\u4F53\u60C5\u7EEA\u6570\u636E\u3002A\u80A1\uFF1A\u4E1C\u65B9\u8D22\u5BCC\u80A1\u5427\u70ED\u5EA6+\u96EA\u7403\u8BA8\u8BBA\u70ED\u5EA6\uFF08\u65E0\u9700\u914D\u7F6E\uFF09\uFF1B\u7F8E\u80A1/\u6E2F\u80A1\uFF1AReddit/X/Polymarket\u60C5\u7EEA\uFF08\u9700 SENTIMENT_API_KEY\uFF09\u3002\u81EA\u52A8\u6309\u5E02\u573A\u9009\u6570\u636E\u6E90\u3002\u9762\u5411\u4E2A\u80A1\u7EF4\u5EA6\uFF1B\u5168\u5E02\u573A\u70ED\u95E8\u8BA8\u8BBA\u7528 get_trending_sentiment",
|
|
5011
5011
|
parameters: typebox_exports.Object({
|
|
5012
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\
|
|
5012
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" })
|
|
5013
5013
|
}),
|
|
5014
5014
|
async execute(_id, params) {
|
|
5015
5015
|
const out = await runPy("search_intel.py", ["sentiment", params.symbol]);
|
|
@@ -5038,9 +5038,9 @@ var index_default = definePluginEntry({
|
|
|
5038
5038
|
});
|
|
5039
5039
|
api.registerTool({
|
|
5040
5040
|
name: "screen_risk",
|
|
5041
|
-
description: "\u98CE\u9669\u4E13\u9879\u7B5B\u67E5 \u2014
|
|
5041
|
+
description: "A\u80A1\u98CE\u9669\u4E13\u9879\u7B5B\u67E5 \u2014 \u68C0\u67E5\u4F30\u503C\u3001\u6280\u672F\u9884\u8B66\u3001\u89E3\u7981\u3001\u51CF\u6301\u3001\u4E1A\u7EE9\u9884\u8B66\u3001\u76D1\u7BA1\u548C\u884C\u4E1A\u653F\u7B56\uFF0C\u8FD4\u56DE\u98CE\u9669\u8BC4\u7EA7\u548C veto_buy\u3002\u65B0\u95FB\u641C\u7D22\u547D\u4E2D\u662F\u5F85\u6838\u5B9E\u7EBF\u7D22\uFF0C\u4E0D\u662F\u5DF2\u8BC1\u5B9E\u98CE\u9669",
|
|
5042
5042
|
parameters: typebox_exports.Object({
|
|
5043
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\
|
|
5043
|
+
symbol: typebox_exports.String({ description: "A\u80A1\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519" }),
|
|
5044
5044
|
name: typebox_exports.Optional(
|
|
5045
5045
|
typebox_exports.String({ description: "\u80A1\u7968\u540D\u79F0\uFF08\u53EF\u9009\uFF0C\u63D0\u5347\u65B0\u95FB\u641C\u7D22\u51C6\u786E\u5EA6\uFF09" })
|
|
5046
5046
|
)
|
|
@@ -5124,7 +5124,7 @@ var index_default = definePluginEntry({
|
|
|
5124
5124
|
description: "\u5F02\u5E38/\u4E8B\u4EF6\u68C0\u6D4B \u2014 \u4E00\u952E\u626B\u63CF\u80A1\u7968\u5F53\u524D\u6240\u6709\u5F02\u52A8\u4FE1\u53F7\uFF08MACD\u91D1\u53C9\u6B7B\u53C9\u3001RSI\u8D85\u4E70\u8D85\u5356\u300120\u65E5\u7A81\u7834\u3001\u653E\u91CF\u5F02\u52A8\u3001\u6DA8\u8DCC\u505C\u3001\u5E03\u6797\u7A81\u7834\u3001KDJ\u6781\u503C\u3001\u8D44\u91D1\u5F02\u52A8\u7B49\uFF09\uFF0C\u8FD4\u56DE\u7ED3\u6784\u5316\u5F02\u5E38\u5217\u8868\u3002\u5F53\u65E5\u5F02\u52A8\u5F52\u56E0\u7684\u9996\u9009\uFF1B\u7EFC\u5408\u6280\u672F\u9762\u5224\u65AD\u7528 get_technical_analysis",
|
|
5125
5125
|
parameters: typebox_exports.Object({
|
|
5126
5126
|
symbol: typebox_exports.String({
|
|
5127
|
-
description: "\u80A1\u7968\u4EE3\u7801\
|
|
5127
|
+
description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09"
|
|
5128
5128
|
})
|
|
5129
5129
|
}),
|
|
5130
5130
|
async execute(_id, params) {
|
|
@@ -5134,7 +5134,7 @@ var index_default = definePluginEntry({
|
|
|
5134
5134
|
});
|
|
5135
5135
|
api.registerTool({
|
|
5136
5136
|
name: "diagnose_data_sources",
|
|
5137
|
-
description: "\u6570\u636E\u6E90\u8BCA\u65AD \u2014 \u68C0\u67E5\u5F53\u524D\u73AF\u5883\
|
|
5137
|
+
description: "\u6570\u636E\u6E90\u8BCA\u65AD \u2014 \u68C0\u67E5\u5F53\u524D\u73AF\u5883\u5404\u6570\u636E provider \u7684\u5305\u4E0E\u51ED\u636E\u5C31\u7EEA\u60C5\u51B5\uFF08\u4E0D\u63A2\u6D4B\u7F51\u7EDC\u53EF\u8FBE\u6027\uFF09\uFF0C\u8F93\u51FA\u6BCF\u4E2A\u5E02\u573A\u7684\u53EF\u7528\u94FE\u8DEF\u3001\u7F3A\u5931 env\u3001warnings\u3002\u5DE5\u5177\u62FF\u4E0D\u5230\u6570\u636E\u6216\u62A5\u9519\u65F6\u8C03\u7528\u6392\u67E5",
|
|
5138
5138
|
parameters: typebox_exports.Object({
|
|
5139
5139
|
market: typebox_exports.Optional(
|
|
5140
5140
|
typebox_exports.Union(
|
|
@@ -5182,9 +5182,9 @@ var index_default = definePluginEntry({
|
|
|
5182
5182
|
});
|
|
5183
5183
|
api.registerTool({
|
|
5184
5184
|
name: "render_stock_report",
|
|
5185
|
-
description: "\u80A1\u7968\u5206\u6790\u62A5\u544A\u6E32\u67D3 \u2014 \u5C06\u7ED3\u6784\u5316
|
|
5185
|
+
description: "\u80A1\u7968\u5206\u6790\u62A5\u544A\u6E32\u67D3 \u2014 \u5C06\u7ED3\u6784\u5316\u62A5\u544A JSON \u901A\u8FC7 j2 \u6A21\u677F\u6E32\u67D3\u4E3A Markdown\u3002report \u5B57\u6BB5\u4EE5 skill \u63D0\u4F9B\u7684 report_schema \u4E3A\u51C6\uFF0C\u4E0D\u8981\u81EA\u9020\u5B57\u6BB5\u3002template: brief|full\u3002\u5168\u90E8\u5206\u6790\u5B8C\u6210\u540E\u7684\u6700\u540E\u4E00\u6B65\u8C03\u7528\u3002\u4EC5\u6E32\u67D3\uFF0C\u4E0D\u4FDD\u5B58\u4E0D\u63A8\u9001",
|
|
5186
5186
|
parameters: typebox_exports.Object({
|
|
5187
|
-
report: typebox_exports.Object({}, { additionalProperties: true, description: "\u7ED3\u6784\u5316\u80A1\u7968\u62A5\u544A" }),
|
|
5187
|
+
report: typebox_exports.Object({}, { additionalProperties: true, description: "\u7ED3\u6784\u5316\u80A1\u7968\u62A5\u544A JSON" }),
|
|
5188
5188
|
template: typebox_exports.Optional(
|
|
5189
5189
|
typebox_exports.Union([typebox_exports.Literal("brief"), typebox_exports.Literal("full")], {
|
|
5190
5190
|
description: "\u6A21\u677F\u7C7B\u578B\uFF0C\u9ED8\u8BA4 full"
|
|
@@ -5205,7 +5205,7 @@ var index_default = definePluginEntry({
|
|
|
5205
5205
|
});
|
|
5206
5206
|
api.registerTool({
|
|
5207
5207
|
name: "render_market_report",
|
|
5208
|
-
description: "\u5927\u76D8\u590D\u76D8\u62A5\u544A\u6E32\u67D3 \u2014 \u5C06\u7ED3\u6784\u5316
|
|
5208
|
+
description: "\u5927\u76D8\u590D\u76D8\u62A5\u544A\u6E32\u67D3 \u2014 \u5C06\u7ED3\u6784\u5316\u62A5\u544A JSON \u901A\u8FC7 j2 \u6A21\u677F\u6E32\u67D3\u4E3A Markdown\u3002report \u5B57\u6BB5\u4EE5 schemas/market_review_schema.json \u4E3A\u51C6\u3002\u4EC5\u6E32\u67D3\uFF0C\u4E0D\u4FDD\u5B58\u4E0D\u63A8\u9001",
|
|
5209
5209
|
parameters: typebox_exports.Object({
|
|
5210
5210
|
report: typebox_exports.Object({}, { additionalProperties: true, description: "\u7ED3\u6784\u5316\u5E02\u573A\u590D\u76D8" }),
|
|
5211
5211
|
template: typebox_exports.Optional(
|
|
@@ -5250,7 +5250,7 @@ var index_default = definePluginEntry({
|
|
|
5250
5250
|
name: "analyze_position_context",
|
|
5251
5251
|
description: "\u6301\u4ED3\u4E0A\u4E0B\u6587\u5206\u6790 \u2014 \u8F93\u5165\u6210\u672C/\u4ED3\u4F4D/\u6B62\u635F\u6B62\u76C8\uFF0C\u7ED3\u5408\u73B0\u4EF7\u548C\u6280\u672F\u4F4D\u8F93\u51FA\u6D6E\u76C8\u4E8F\u3001\u79BB\u6B62\u635F\u8DDD\u79BB\u3001\u98CE\u9669\u7EA7\u522B\u3001\u64CD\u4F5C\u5EFA\u8BAE\u3002\u65E0\u72B6\u6001\u3001\u4E0D\u5B58\u8D26\u6237",
|
|
5252
5252
|
parameters: typebox_exports.Object({
|
|
5253
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
5253
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
5254
5254
|
cost: typebox_exports.Number({ description: "\u6210\u672C\u4EF7" }),
|
|
5255
5255
|
quantity: typebox_exports.Number({ description: "\u6301\u4ED3\u6570\u91CF" }),
|
|
5256
5256
|
stop_loss: typebox_exports.Optional(typebox_exports.Number({ description: "\u6B62\u635F\u4EF7" })),
|
|
@@ -5279,7 +5279,7 @@ var index_default = definePluginEntry({
|
|
|
5279
5279
|
name: "check_alert_rules",
|
|
5280
5280
|
description: "\u65E0\u72B6\u6001\u544A\u8B66\u89C4\u5219\u68C0\u67E5 \u2014 \u4F20\u5165\u89C4\u5219\u6570\u7EC4\uFF0C\u8FD4\u56DE\u5F53\u524D\u662F\u5426\u89E6\u53D1\u3002\u89C4\u5219\u7C7B\u578B\uFF1Aprice_below/price_above/change_pct_above/change_pct_below/volume_ratio_above/anomaly/risk_veto/risk_level_at_least\u3002\u4E0D\u505A\u8C03\u5EA6\u4E0D\u5B58\u5386\u53F2",
|
|
5281
5281
|
parameters: typebox_exports.Object({
|
|
5282
|
-
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801" }),
|
|
5282
|
+
symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
|
|
5283
5283
|
rules: typebox_exports.Array(
|
|
5284
5284
|
typebox_exports.Object({}, { additionalProperties: true }),
|
|
5285
5285
|
{ description: "\u89C4\u5219\u5217\u8868\uFF0C\u6BCF\u9879 { type, value }" }
|
package/index.ts
CHANGED
|
@@ -90,7 +90,7 @@ export default definePluginEntry({
|
|
|
90
90
|
name: "get_quote",
|
|
91
91
|
description: "获取股票实时行情报价(现价、涨跌幅、量比等)。支持A股、港股、美股、日股、韩股、台股",
|
|
92
92
|
parameters: Type.Object({
|
|
93
|
-
symbol: Type.String({ description: "
|
|
93
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
94
94
|
}),
|
|
95
95
|
async execute(_id, params) {
|
|
96
96
|
const out = await runPy("stock_data.py", ["quote", params.symbol]);
|
|
@@ -130,7 +130,7 @@ export default definePluginEntry({
|
|
|
130
130
|
name: "get_news",
|
|
131
131
|
description: "获取个股最近N天财经新闻快讯(轻量、无需配置)。需要深度全网情报用 search_comprehensive_intel,按主题搜索用 search_stock_news,读文章全文用 extract_article",
|
|
132
132
|
parameters: Type.Object({
|
|
133
|
-
symbol: Type.String({ description: "
|
|
133
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
134
134
|
days: Type.Optional(
|
|
135
135
|
Type.Number({ description: "获取最近几天的新闻,默认 3" })
|
|
136
136
|
),
|
|
@@ -148,9 +148,9 @@ export default definePluginEntry({
|
|
|
148
148
|
|
|
149
149
|
api.registerTool({
|
|
150
150
|
name: "get_financials",
|
|
151
|
-
description: "
|
|
151
|
+
description: "获取股票财务摘要。A股返回最新报告期 ROE/毛利率/净利率/负债率/流动比率;其他市场返回 PE/PB/市值/营收/净利润等。A股估值、成长和分红用 get_fundamental_context",
|
|
152
152
|
parameters: Type.Object({
|
|
153
|
-
symbol: Type.String({ description: "
|
|
153
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
154
154
|
}),
|
|
155
155
|
async execute(_id, params) {
|
|
156
156
|
const out = await runPy("stock_data.py", ["financials", params.symbol]);
|
|
@@ -165,7 +165,7 @@ export default definePluginEntry({
|
|
|
165
165
|
description:
|
|
166
166
|
"获取股票技术面分析(MA/MACD/RSI/BOLL/KDJ/成交量等指标 + 100分综合评分 + 6级买卖信号 + 趋势/偏离度/支撑压力位)。个股技术面综合判断与买卖时机分析的首选;只要均线数值或自定义周期用 calculate_ma,专问量价用 get_volume_analysis,扫当日异动用 detect_anomaly",
|
|
167
167
|
parameters: Type.Object({
|
|
168
|
-
symbol: Type.String({ description: "
|
|
168
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
169
169
|
period: Type.Optional(
|
|
170
170
|
Type.Union(
|
|
171
171
|
[Type.Literal("daily"), Type.Literal("weekly"), Type.Literal("monthly")],
|
|
@@ -194,7 +194,7 @@ export default definePluginEntry({
|
|
|
194
194
|
description:
|
|
195
195
|
"K线形态识别 — 检测十字星、锤子线、吞没、启明星、黄昏星、双底、20日突破等12+种经典形态。综合技术面判断用 get_technical_analysis",
|
|
196
196
|
parameters: Type.Object({
|
|
197
|
-
symbol: Type.String({ description: "
|
|
197
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
198
198
|
period: Type.Optional(
|
|
199
199
|
Type.Union(
|
|
200
200
|
[Type.Literal("daily"), Type.Literal("weekly"), Type.Literal("monthly")],
|
|
@@ -314,7 +314,7 @@ export default definePluginEntry({
|
|
|
314
314
|
description:
|
|
315
315
|
"获取股票基本信息(行业、板块、上市日期、总股本等)。A股返回板块/行业,其他市场返回行业/公司简介",
|
|
316
316
|
parameters: Type.Object({
|
|
317
|
-
symbol: Type.String({ description: "
|
|
317
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
318
318
|
}),
|
|
319
319
|
async execute(_id, params) {
|
|
320
320
|
const out = await runPy("stock_data.py", ["stock_info", params.symbol]);
|
|
@@ -360,7 +360,7 @@ export default definePluginEntry({
|
|
|
360
360
|
api.registerTool({
|
|
361
361
|
name: "get_fundamental_context",
|
|
362
362
|
description:
|
|
363
|
-
"获取A
|
|
363
|
+
"获取A股基本面上下文(估值 PE/PB/市值 + 营收/净利增速 + ROE/毛利率/净利率 + 分红历史)。用于评估公司质地与长期持有价值",
|
|
364
364
|
parameters: Type.Object({
|
|
365
365
|
symbol: Type.String({ description: "A股股票代码,如 600519" }),
|
|
366
366
|
}),
|
|
@@ -390,7 +390,7 @@ export default definePluginEntry({
|
|
|
390
390
|
Type.Number({ description: "返回排名前N的股票,默认 20" })
|
|
391
391
|
),
|
|
392
392
|
config: Type.Optional(
|
|
393
|
-
Type.String({ description: "自定义筛选配置YAML
|
|
393
|
+
Type.String({ description: "自定义筛选配置YAML文件路径,不填用默认配置" })
|
|
394
394
|
),
|
|
395
395
|
l2: Type.Optional(
|
|
396
396
|
Type.Boolean({ description: "开启L2量化增强(质量/成长/真实动量/波动率/资金流因子,逐股抓取数据较慢),默认关闭" })
|
|
@@ -417,7 +417,7 @@ export default definePluginEntry({
|
|
|
417
417
|
"策略回测(AlphaEvo)。读取YAML策略定义,在历史数据上模拟交易,输出收益率/回撤/胜率等指标。只想知道单个技术信号的历史胜率用更轻量的 evaluate_signal",
|
|
418
418
|
parameters: Type.Object({
|
|
419
419
|
strategy: Type.String({ description: "策略YAML文件路径" }),
|
|
420
|
-
symbol: Type.String({ description: "
|
|
420
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
421
421
|
start: Type.Optional(
|
|
422
422
|
Type.String({ description: "回测起始日期,格式 YYYY-MM-DD" })
|
|
423
423
|
),
|
|
@@ -443,7 +443,7 @@ export default definePluginEntry({
|
|
|
443
443
|
description:
|
|
444
444
|
"技术信号历史准确率评估 — 回溯历史数据,统计某个技术信号触发后N日的胜率和平均收益。支持9种信号:macd_golden_cross/macd_death_cross/rsi_oversold/rsi_overbought/breakout_20d/breakdown_20d/volume_surge/ma_golden_cross/ma_death_cross。要完整模拟交易过程用 run_backtest",
|
|
445
445
|
parameters: Type.Object({
|
|
446
|
-
symbol: Type.String({ description: "
|
|
446
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
447
447
|
signal: Type.Union(
|
|
448
448
|
[
|
|
449
449
|
Type.Literal("macd_golden_cross"),
|
|
@@ -567,7 +567,7 @@ export default definePluginEntry({
|
|
|
567
567
|
description:
|
|
568
568
|
"独立均线计算器 — 支持任意周期MA(5/10/20/30/60/120/250或自定义)+ 偏离度 + 均线排列 + 金叉死叉检测。只要均线数值或需要30/120/250等非默认周期时用本工具;综合技术面分析用 get_technical_analysis",
|
|
569
569
|
parameters: Type.Object({
|
|
570
|
-
symbol: Type.String({ description: "
|
|
570
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
571
571
|
periods: Type.Optional(
|
|
572
572
|
Type.String({
|
|
573
573
|
description: "逗号分隔的MA周期列表,如 5,10,20,60,120,250",
|
|
@@ -602,7 +602,7 @@ export default definePluginEntry({
|
|
|
602
602
|
description:
|
|
603
603
|
"独立量价分析 — 量价相关性、上涨/下跌日成交量对比、量能趋势、量价模式解读(放量上涨/缩量回调等)。综合技术面判断用 get_technical_analysis,扫当日异动用 detect_anomaly",
|
|
604
604
|
parameters: Type.Object({
|
|
605
|
-
symbol: Type.String({ description: "
|
|
605
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
606
606
|
period: Type.Optional(
|
|
607
607
|
Type.Union(
|
|
608
608
|
[Type.Literal("daily"), Type.Literal("weekly"), Type.Literal("monthly")],
|
|
@@ -631,7 +631,7 @@ export default definePluginEntry({
|
|
|
631
631
|
api.registerTool({
|
|
632
632
|
name: "search_stock_news",
|
|
633
633
|
description:
|
|
634
|
-
"
|
|
634
|
+
"多引擎股票新闻搜索(Tavily/Brave/SerpAPI/Bocha/SearXNG)。需配置至少一个搜索源的 Key 或 SearXNG URL。get_news 快讯不够或要按主题搜索时用;深度6维情报用 search_comprehensive_intel",
|
|
635
635
|
parameters: Type.Object({
|
|
636
636
|
query: Type.String({ description: "搜索关键词" }),
|
|
637
637
|
count: Type.Optional(
|
|
@@ -654,7 +654,7 @@ export default definePluginEntry({
|
|
|
654
654
|
description:
|
|
655
655
|
"股票综合情报搜索 — 从6个维度(新闻/公告/行情分析/风险/业绩/行业)搜索综合信息。用于个股的深入研究/全面调研;快速看新闻用 get_news",
|
|
656
656
|
parameters: Type.Object({
|
|
657
|
-
symbol: Type.String({ description: "
|
|
657
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
658
658
|
name: Type.Optional(
|
|
659
659
|
Type.String({ description: "股票名称(可选,提升搜索准确度)" })
|
|
660
660
|
),
|
|
@@ -672,7 +672,7 @@ export default definePluginEntry({
|
|
|
672
672
|
description:
|
|
673
673
|
"获取股票社交媒体情绪数据。A股:东方财富股吧热度+雪球讨论热度(无需配置);美股/港股:Reddit/X/Polymarket情绪(需 SENTIMENT_API_KEY)。自动按市场选数据源。面向个股维度;全市场热门讨论用 get_trending_sentiment",
|
|
674
674
|
parameters: Type.Object({
|
|
675
|
-
symbol: Type.String({ description: "
|
|
675
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
676
676
|
}),
|
|
677
677
|
async execute(_id, params) {
|
|
678
678
|
const out = await runPy("search_intel.py", ["sentiment", params.symbol]);
|
|
@@ -707,9 +707,9 @@ export default definePluginEntry({
|
|
|
707
707
|
api.registerTool({
|
|
708
708
|
name: "screen_risk",
|
|
709
709
|
description:
|
|
710
|
-
"
|
|
710
|
+
"A股风险专项筛查 — 检查估值、技术预警、解禁、减持、业绩预警、监管和行业政策,返回风险评级和 veto_buy。新闻搜索命中是待核实线索,不是已证实风险",
|
|
711
711
|
parameters: Type.Object({
|
|
712
|
-
symbol: Type.String({ description: "
|
|
712
|
+
symbol: Type.String({ description: "A股股票代码,如 600519" }),
|
|
713
713
|
name: Type.Optional(
|
|
714
714
|
Type.String({ description: "股票名称(可选,提升新闻搜索准确度)" })
|
|
715
715
|
),
|
|
@@ -801,7 +801,7 @@ export default definePluginEntry({
|
|
|
801
801
|
"异常/事件检测 — 一键扫描股票当前所有异动信号(MACD金叉死叉、RSI超买超卖、20日突破、放量异动、涨跌停、布林突破、KDJ极值、资金异动等),返回结构化异常列表。当日异动归因的首选;综合技术面判断用 get_technical_analysis",
|
|
802
802
|
parameters: Type.Object({
|
|
803
803
|
symbol: Type.String({
|
|
804
|
-
description: "
|
|
804
|
+
description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)",
|
|
805
805
|
}),
|
|
806
806
|
}),
|
|
807
807
|
async execute(_id, params) {
|
|
@@ -815,7 +815,7 @@ export default definePluginEntry({
|
|
|
815
815
|
api.registerTool({
|
|
816
816
|
name: "diagnose_data_sources",
|
|
817
817
|
description:
|
|
818
|
-
"数据源诊断 —
|
|
818
|
+
"数据源诊断 — 检查当前环境各数据 provider 的包与凭据就绪情况(不探测网络可达性),输出每个市场的可用链路、缺失 env、warnings。工具拿不到数据或报错时调用排查",
|
|
819
819
|
parameters: Type.Object({
|
|
820
820
|
market: Type.Optional(
|
|
821
821
|
Type.Union(
|
|
@@ -871,9 +871,9 @@ export default definePluginEntry({
|
|
|
871
871
|
api.registerTool({
|
|
872
872
|
name: "render_stock_report",
|
|
873
873
|
description:
|
|
874
|
-
"股票分析报告渲染 —
|
|
874
|
+
"股票分析报告渲染 — 将结构化报告 JSON 通过 j2 模板渲染为 Markdown。report 字段以 skill 提供的 report_schema 为准,不要自造字段。template: brief|full。全部分析完成后的最后一步调用。仅渲染,不保存不推送",
|
|
875
875
|
parameters: Type.Object({
|
|
876
|
-
report: Type.Object({}, { additionalProperties: true, description: "结构化股票报告" }),
|
|
876
|
+
report: Type.Object({}, { additionalProperties: true, description: "结构化股票报告 JSON" }),
|
|
877
877
|
template: Type.Optional(
|
|
878
878
|
Type.Union([Type.Literal("brief"), Type.Literal("full")], {
|
|
879
879
|
description: "模板类型,默认 full",
|
|
@@ -896,7 +896,7 @@ export default definePluginEntry({
|
|
|
896
896
|
api.registerTool({
|
|
897
897
|
name: "render_market_report",
|
|
898
898
|
description:
|
|
899
|
-
|
|
899
|
+
"大盘复盘报告渲染 — 将结构化报告 JSON 通过 j2 模板渲染为 Markdown。report 字段以 schemas/market_review_schema.json 为准。仅渲染,不保存不推送",
|
|
900
900
|
parameters: Type.Object({
|
|
901
901
|
report: Type.Object({}, { additionalProperties: true, description: "结构化市场复盘" }),
|
|
902
902
|
template: Type.Optional(
|
|
@@ -947,7 +947,7 @@ export default definePluginEntry({
|
|
|
947
947
|
description:
|
|
948
948
|
"持仓上下文分析 — 输入成本/仓位/止损止盈,结合现价和技术位输出浮盈亏、离止损距离、风险级别、操作建议。无状态、不存账户",
|
|
949
949
|
parameters: Type.Object({
|
|
950
|
-
symbol: Type.String({ description: "
|
|
950
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
951
951
|
cost: Type.Number({ description: "成本价" }),
|
|
952
952
|
quantity: Type.Number({ description: "持仓数量" }),
|
|
953
953
|
stop_loss: Type.Optional(Type.Number({ description: "止损价" })),
|
|
@@ -978,7 +978,7 @@ export default definePluginEntry({
|
|
|
978
978
|
description:
|
|
979
979
|
"无状态告警规则检查 — 传入规则数组,返回当前是否触发。规则类型:price_below/price_above/change_pct_above/change_pct_below/volume_ratio_above/anomaly/risk_veto/risk_level_at_least。不做调度不存历史",
|
|
980
980
|
parameters: Type.Object({
|
|
981
|
-
symbol: Type.String({ description: "
|
|
981
|
+
symbol: Type.String({ description: "股票代码(A股如600519,美股如AAPL,港股如00700.HK)" }),
|
|
982
982
|
rules: Type.Array(
|
|
983
983
|
Type.Object({}, { additionalProperties: true }),
|
|
984
984
|
{ description: "规则列表,每项 { type, value }" }
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bottom-volume
|
|
3
|
-
description:
|
|
4
|
-
allowed-tools: Bash(python3:*) Read
|
|
3
|
+
description: 底部放量分析:判断长期下跌后的异常放量是否构成反转信号。用于低位放量;普通阻力突破用 volume-breakout。
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# 底部放量分析
|
|
8
7
|
|
|
9
|
-
你是一位专注底部形态的交易专家。
|
|
10
|
-
|
|
11
8
|
## 核心理念
|
|
12
9
|
|
|
13
10
|
长期下跌后的底部区域出现异常放量,可能意味着主力资金开始建仓。底部放量是趋势反转的先兆信号,但需要结合其他指标确认。
|
|
@@ -11,7 +11,7 @@ for _s in (sys.stdout, sys.stderr):
|
|
|
11
11
|
if hasattr(_s, "reconfigure"):
|
|
12
12
|
_s.reconfigure(encoding="utf-8")
|
|
13
13
|
|
|
14
|
-
tools = Path(__file__).resolve().parents[
|
|
14
|
+
tools = Path(__file__).resolve().parents[3] / "tools"
|
|
15
15
|
result = subprocess.run(
|
|
16
16
|
[sys.executable, str(tools / "gather.py"), "technical", sys.argv[1], "--kline-count", "120"],
|
|
17
17
|
capture_output=True,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: box-oscillation
|
|
3
|
-
description:
|
|
4
|
-
allowed-tools: Bash(python3:*) Read
|
|
3
|
+
description: 箱体震荡分析:识别横盘区间、支撑压力和突破失效条件。用于区间波段或高抛低吸问题。
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# 箱体震荡分析
|
|
8
7
|
|
|
9
|
-
你是一位专注箱体交易的专家。
|
|
10
|
-
|
|
11
8
|
## 核心理念
|
|
12
9
|
|
|
13
10
|
当股价在一个相对固定的区间内反复震荡时,形成"箱体"。在箱体内低买高卖做波段,直到箱体被突破。
|
|
@@ -11,7 +11,7 @@ for _s in (sys.stdout, sys.stderr):
|
|
|
11
11
|
if hasattr(_s, "reconfigure"):
|
|
12
12
|
_s.reconfigure(encoding="utf-8")
|
|
13
13
|
|
|
14
|
-
tools = Path(__file__).resolve().parents[
|
|
14
|
+
tools = Path(__file__).resolve().parents[3] / "tools"
|
|
15
15
|
result = subprocess.run(
|
|
16
16
|
[sys.executable, str(tools / "gather.py"), "technical", sys.argv[1], "--kline-count", "90"],
|
|
17
17
|
capture_output=True,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bull-trend
|
|
3
|
-
description:
|
|
4
|
-
allowed-tools: Bash(python3:*) Read
|
|
3
|
+
description: 趋势追踪分析:识别中长期趋势、所处阶段和离场条件。用于多头排列、上升通道或持有趋势股。
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# 趋势追踪分析
|
|
8
7
|
|
|
9
|
-
你是一位趋势交易专家。运用趋势追踪方法论分析股票。
|
|
10
|
-
|
|
11
8
|
## 核心理念
|
|
12
9
|
|
|
13
10
|
趋势追踪的核心是"顺势而为"——在确认趋势形成后入场,在趋势转弱时离场。不预测顶底,只跟随趋势。
|
|
@@ -11,7 +11,7 @@ for _s in (sys.stdout, sys.stderr):
|
|
|
11
11
|
if hasattr(_s, "reconfigure"):
|
|
12
12
|
_s.reconfigure(encoding="utf-8")
|
|
13
13
|
|
|
14
|
-
tools = Path(__file__).resolve().parents[
|
|
14
|
+
tools = Path(__file__).resolve().parents[3] / "tools"
|
|
15
15
|
result = subprocess.run(
|
|
16
16
|
[sys.executable, str(tools / "gather.py"), "technical", sys.argv[1], "--kline-count", "120"],
|
|
17
17
|
capture_output=True,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: chan-theory
|
|
3
|
-
description:
|
|
4
|
-
allowed-tools: Bash(python3:*) Read
|
|
3
|
+
description: 缠论分析:按笔、段、中枢和背驰识别缠论买卖点。仅在用户明确要求缠论口径时使用。
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# 缠论分析
|
|
8
7
|
|
|
9
|
-
你是一位精通缠论的交易专家。运用缠中说禅理论体系分析股票走势。
|
|
10
|
-
|
|
11
8
|
## 核心理念
|
|
12
9
|
|
|
13
10
|
缠论是一套完备的技术分析理论,通过对走势的几何结构分析(笔→段→中枢→趋势),实现精确的买卖点定位。
|
|
@@ -11,7 +11,7 @@ for _s in (sys.stdout, sys.stderr):
|
|
|
11
11
|
if hasattr(_s, "reconfigure"):
|
|
12
12
|
_s.reconfigure(encoding="utf-8")
|
|
13
13
|
|
|
14
|
-
tools = Path(__file__).resolve().parents[
|
|
14
|
+
tools = Path(__file__).resolve().parents[3] / "tools"
|
|
15
15
|
result = subprocess.run(
|
|
16
16
|
[sys.executable, str(tools / "gather.py"), "technical", sys.argv[1], "--kline-count", "120"],
|
|
17
17
|
capture_output=True,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dragon-head
|
|
3
|
-
description:
|
|
4
|
-
allowed-tools: Bash(python3:*) Read
|
|
3
|
+
description: 龙头股分析:在已知板块中比较启动顺序、涨幅、回调和持续性。题材热度与参与节奏用 hot-theme。
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# 龙头战法分析
|
|
8
7
|
|
|
9
|
-
你是一位专注龙头股战法的交易专家。
|
|
10
|
-
|
|
11
8
|
## 核心理念
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
“龙头”是同一板块、同一时间窗口内可验证的相对地位,不是个股强势的同义词。没有候选池和同期数据时,不下龙头结论。
|
|
11
|
+
|
|
12
|
+
比较前读取[短线交易决策框架](../stock-analysis/references/short-term-trading.md),使用其中的相对强弱、市场状态和风险单位规则。
|
|
14
13
|
|
|
15
14
|
## 执行流程
|
|
16
15
|
|
|
@@ -23,34 +22,27 @@ python3 scripts/gather.py <symbol>
|
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
同时用 resolve_stock_sectors 确认个股所属板块,再用 get_sector_constituents 拉取同板块个股列表——后续「龙头 vs 跟风」的强弱对比都在这个板块池内进行。
|
|
25
|
+
获取不到板块池或池内个股同期表现时,只评估候选股的强势特征,不给出“龙头/龙一”结论。
|
|
26
26
|
|
|
27
|
-
### 2.
|
|
27
|
+
### 2. 相对强弱验证
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
- 率先涨停或封单最大
|
|
31
|
-
- 板块启动第一天就涨停
|
|
32
|
-
- 连板天数最多
|
|
29
|
+
在同一截止时间比较板块候选股:
|
|
33
30
|
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
31
|
+
- 5 日与 20 日收益及相对板块的超额表现
|
|
32
|
+
- 启动时间、最大回撤和回撤后的恢复速度
|
|
33
|
+
- 上涨日与下跌日的成交量结构
|
|
34
|
+
- 板块上涨时是否领涨,板块分歧时是否保持相对强度
|
|
38
35
|
|
|
39
|
-
|
|
40
|
-
- 具有板块辨识度(一提到某概念就想到这只股)
|
|
41
|
-
- 市值不宜过大(难以拉升)也不宜过小(承载力不够)
|
|
36
|
+
封单大小、开板次数、竞价强弱和分时承接需要盘口或分钟数据。当前数据无法验证时明确标注缺失,不得据此评定龙头。
|
|
42
37
|
|
|
43
|
-
### 3.
|
|
38
|
+
### 3. 判断阶段与计划
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
40
|
+
- **Setup**:板块开始扩散,候选股率先取得相对强度。
|
|
41
|
+
- **Trigger**:个股突破或回踩再启动,板块方向同步确认。
|
|
42
|
+
- **Acceptance**:个股保持领先且回撤小于板块同类。
|
|
43
|
+
- **Failure**:板块退潮、领先优势消失或个股放量跌破关键结构。
|
|
49
44
|
|
|
50
|
-
|
|
51
|
-
- 连板结束后的第一个大阴线
|
|
52
|
-
- 板块整体退潮,跟风股全面走弱
|
|
53
|
-
- 换手率异常放大(超过前几日均值 3 倍以上)
|
|
45
|
+
交易计划必须给出触发、失效、时间止损和潜在收益/R;只确认“最强”而没有合理风险边界时不交易。
|
|
54
46
|
|
|
55
47
|
### 4. 龙头 vs 跟风
|
|
56
48
|
|
|
@@ -59,7 +51,7 @@ python3 scripts/gather.py <symbol>
|
|
|
59
51
|
| 启动顺序 | 最先 | 滞后 |
|
|
60
52
|
| 涨幅 | 最大 | 较小 |
|
|
61
53
|
| 回调 | 小且快 | 大且深 |
|
|
62
|
-
|
|
|
54
|
+
| 成交确认 | 上涨时相对放量、回撤时抛压可控 | 上涨缩量或回撤放量 |
|
|
63
55
|
| 持续性 | 强 | 弱 |
|
|
64
56
|
|
|
65
57
|
## 输出要求
|
|
@@ -68,4 +60,6 @@ python3 scripts/gather.py <symbol>
|
|
|
68
60
|
2. 所属板块和板块热度
|
|
69
61
|
3. 与同板块个股的强弱对比
|
|
70
62
|
4. 当前处于龙头行情的哪个阶段
|
|
71
|
-
5.
|
|
63
|
+
5. 触发、失效、时间止损和风险提示
|
|
64
|
+
|
|
65
|
+
完成标准:至少与同板块候选股比较启动时间、涨幅和回撤;否则输出“龙头地位未验证”。
|