@weaxs/openclaw-stock-analysis 0.2.6 → 0.2.8

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.
Files changed (38) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +284 -19
  3. package/index.ts +214 -12
  4. package/openclaw.plugin.json +9 -1
  5. package/package.json +1 -1
  6. package/schemas/market_review_schema.json +12 -5
  7. package/schemas/report_schema.json +65 -1
  8. package/scripts/cli-timeout.mjs +27 -0
  9. package/scripts/json-input.mjs +26 -0
  10. package/skills/bull-trend/SKILL.md +11 -1
  11. package/skills/bull-trend/references/monthly-trend-strategy.md +47 -0
  12. package/skills/bull-trend/references/trend-horizons.md +43 -0
  13. package/skills/bull-trend/references/trend-temperature.md +57 -0
  14. package/skills/bull-trend/scripts/market_trend.py +78 -0
  15. package/skills/event-driven/SKILL.md +4 -0
  16. package/skills/growth-quality/SKILL.md +4 -0
  17. package/skills/market-review/SKILL.md +2 -0
  18. package/skills/stock-analysis/SKILL.md +17 -3
  19. package/skills/stock-analysis/references/stateless-analysis.md +66 -0
  20. package/skills/stock-screener/SKILL.md +5 -1
  21. package/skills/strategy-backtest/SKILL.md +19 -0
  22. package/templates/market_review/full.md.j2 +7 -0
  23. package/templates/stock_analysis/_evidence.md.j2 +11 -0
  24. package/templates/stock_analysis/brief.md.j2 +2 -0
  25. package/templates/stock_analysis/full.md.j2 +2 -0
  26. package/tools/_subproc.py +66 -11
  27. package/tools/backtest.py +143 -19
  28. package/tools/capabilities.py +12 -0
  29. package/tools/cli_budgets.json +27 -0
  30. package/tools/gather.py +4 -6
  31. package/tools/market_review.py +30 -9
  32. package/tools/screener.py +57 -15
  33. package/tools/signal_tracker.py +77 -6
  34. package/tools/stateless_analysis.py +630 -0
  35. package/tools/stock_data.py +90 -15
  36. package/tools/technical.py +186 -0
  37. package/tools/trend_strategy.py +365 -0
  38. package/tools/watchlist_context.py +18 -7
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Stock Analysis — OpenClaw Plugin
2
2
 
3
- A股 / 港股 / 美股 / 日股 / 韩股 / 台股 行情、技术分析、筛选与回测。OpenClaw Gateway 加载后即可在对话中调用 51 个工具。
3
+ A股 / 港股 / 美股 / 日股 / 韩股 / 台股 行情、技术分析、筛选与回测。OpenClaw Gateway 加载后即可在对话中调用 68 个工具。
4
4
 
5
5
  ## 安装
6
6
 
package/dist/index.js CHANGED
@@ -4,11 +4,92 @@ var __export = (target, all) => {
4
4
  __defProp(target, name, { get: all[name], enumerable: true });
5
5
  };
6
6
 
7
+ // scripts/json-input.mjs
8
+ import { mkdtemp, writeFile, rm } from "node:fs/promises";
9
+ import { tmpdir } from "node:os";
10
+ import { join } from "node:path";
11
+ async function withJsonInput(input, execute) {
12
+ let directory;
13
+ let result;
14
+ try {
15
+ directory = await mkdtemp(join(tmpdir(), "stock-analysis-"));
16
+ const path = join(directory, "input.json");
17
+ await writeFile(path, JSON.stringify(input), { encoding: "utf8", mode: 384 });
18
+ result = await execute(path);
19
+ } catch {
20
+ result = JSON.stringify({ error: "Analysis command failed; check input and interpreter/dependencies" });
21
+ } finally {
22
+ if (directory) {
23
+ try {
24
+ await rm(directory, { recursive: true, force: true });
25
+ } catch {
26
+ result = JSON.stringify({ error: "Could not remove temporary analysis input" });
27
+ }
28
+ }
29
+ }
30
+ return result;
31
+ }
32
+
33
+ // tools/cli_budgets.json
34
+ var cli_budgets_default = {
35
+ default: 120,
36
+ "stock_data.py:market_snapshot": 240,
37
+ "screener.py:screen": 390,
38
+ "sec_edgar.py:holdings": 300,
39
+ "technical.py:analyze": 150,
40
+ "market_regime.py:detect": 270,
41
+ "backtest.py:run": 270,
42
+ "risk_screening.py:screen": 450,
43
+ "signal_tracker.py:evaluate": 300,
44
+ "stock_data.py:market_stats": 240,
45
+ "market_review.py:review": 300,
46
+ "anomaly_detect.py:detect": 390,
47
+ "position_context.py:analyze": 300,
48
+ "alert_rules.py:check": 480,
49
+ "technical.py:calculate_ma": 150,
50
+ "value_data.py:dividends": 300,
51
+ "value_data.py:etf_details": 450,
52
+ "watchlist.py:analyze": 30,
53
+ "watchlist_context.py:build": 30,
54
+ l2_batch: 360,
55
+ l2_workers: 6,
56
+ watchlist_item: 480,
57
+ "stateless_analysis.py:event_study": 300,
58
+ "stateless_analysis.py:robustness": 660,
59
+ "trend_strategy.py:fetch": 660
60
+ };
61
+
62
+ // scripts/cli-timeout.mjs
63
+ import { basename } from "node:path";
64
+ function commandTimeout(script, args) {
65
+ const key = `${basename(script)}:${args[0] ?? ""}`;
66
+ let budget = cli_budgets_default[key] ?? cli_budgets_default.default;
67
+ const option = (name, fallback) => args.includes(name) ? args[args.indexOf(name) + 1] ?? fallback : fallback;
68
+ const positiveInt = (value, fallback) => /^\d+$/.test(String(value)) && Number(value) > 0 ? Number(value) : fallback;
69
+ if (key === "screener.py:screen") {
70
+ budget += Math.ceil(positiveInt(option("--top", 20), 20) / cli_budgets_default.l2_workers) * cli_budgets_default.l2_batch;
71
+ } else if (key === "watchlist.py:analyze" || key === "watchlist_context.py:build") {
72
+ const count = String(args[1] ?? "").split(",").filter((s) => s.trim()).length;
73
+ const workers = positiveInt(option("--workers", 3), 3);
74
+ budget += Math.ceil(count / workers) * cli_budgets_default.watchlist_item;
75
+ if (key === "watchlist_context.py:build") {
76
+ budget += Math.ceil(count / Math.min(workers * 2, 6)) * cli_budgets_default["anomaly_detect.py:detect"];
77
+ if (args.includes("--include-market-review")) budget += 3 * cli_budgets_default["market_review.py:review"] + 30;
78
+ }
79
+ } else if (key === "market_review.py:review" && option("--market", "A") === "all") {
80
+ budget = 3 * budget + 30;
81
+ } else if (key === "technical.py:analyze" && args.includes("--periods")) {
82
+ const periods = String(option("--periods", "daily")).split(",").map((p) => p.trim()).filter(Boolean);
83
+ budget *= (/* @__PURE__ */ new Set([option("--period", "daily"), ...periods])).size;
84
+ }
85
+ return budget * 1e3 + 3e4;
86
+ }
87
+
7
88
  // openclaw/index.ts
8
89
  import { existsSync } from "node:fs";
9
90
  import * as cp from "node:child_process";
10
91
  import { promisify } from "node:util";
11
- import { dirname, join } from "node:path";
92
+ import { dirname, join as join2 } from "node:path";
12
93
  import { fileURLToPath } from "node:url";
13
94
 
14
95
  // node_modules/typebox/build/system/memory/memory.mjs
@@ -4428,7 +4509,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
4428
4509
  var defaultExecutor = async (bin, argv) => {
4429
4510
  const exec = promisify(cp.execFile);
4430
4511
  try {
4431
- const { stdout } = await exec(bin, argv, { maxBuffer: 32 * 1024 * 1024 });
4512
+ const { stdout } = await exec(bin, argv, { maxBuffer: 32 * 1024 * 1024, timeout: commandTimeout(argv[0], argv.slice(1)) });
4432
4513
  return stdout;
4433
4514
  } catch (error) {
4434
4515
  const stdout = error.stdout;
@@ -4437,7 +4518,7 @@ var defaultExecutor = async (bin, argv) => {
4437
4518
  if (data && typeof data.error === "string") return stdout;
4438
4519
  } catch {
4439
4520
  }
4440
- return JSON.stringify({ error: "Python command failed; check interpreter/dependencies" });
4521
+ return JSON.stringify({ error: error.killed ? "Python command timed out" : "Python command failed; check interpreter/dependencies" });
4441
4522
  }
4442
4523
  };
4443
4524
  var executor = defaultExecutor;
@@ -4445,10 +4526,10 @@ function __setExecutor(fn) {
4445
4526
  executor = fn;
4446
4527
  }
4447
4528
  var here = dirname(fileURLToPath(import.meta.url));
4448
- var toolsDir = existsSync(join(here, "tools")) ? join(here, "tools") : join(here, "..", "tools");
4529
+ var toolsDir = existsSync(join2(here, "tools")) ? join2(here, "tools") : join2(here, "..", "tools");
4449
4530
  var fallbackRoot = dirname(toolsDir);
4450
4531
  var isWin = process.platform === "win32";
4451
- var venvBin = join(".venv", isWin ? "Scripts" : "bin", isWin ? "python.exe" : "python3");
4532
+ var venvBin = join2(".venv", isWin ? "Scripts" : "bin", isWin ? "python.exe" : "python3");
4452
4533
  function asText(text) {
4453
4534
  return { content: [{ type: "text", text }] };
4454
4535
  }
@@ -4458,15 +4539,185 @@ var index_default = definePluginEntry({
4458
4539
  description: "Stock analysis, screening, and strategy backtesting across A/HK/US/JP/KR/TW markets",
4459
4540
  register(api) {
4460
4541
  const repoRoot = api.rootDir || fallbackRoot;
4461
- const runtimeToolsDir = existsSync(join(repoRoot, "tools")) ? join(repoRoot, "tools") : toolsDir;
4542
+ const runtimeToolsDir = existsSync(join2(repoRoot, "tools")) ? join2(repoRoot, "tools") : toolsDir;
4462
4543
  const pythonBin = () => {
4463
- const venvPython = join(repoRoot, venvBin);
4544
+ const venvPython = join2(repoRoot, venvBin);
4464
4545
  if (existsSync(venvPython)) return venvPython;
4465
- const parentVenvPython = join(repoRoot, "..", venvBin);
4546
+ const parentVenvPython = join2(repoRoot, "..", venvBin);
4466
4547
  if (existsSync(parentVenvPython)) return parentVenvPython;
4467
4548
  return isWin ? "python" : "python3";
4468
4549
  };
4469
- const runPy = (script, args) => executor(pythonBin(), [join(runtimeToolsDir, script), ...args]);
4550
+ const runPy = (script, args) => executor(pythonBin(), [join2(runtimeToolsDir, script), ...args]);
4551
+ api.registerTool({
4552
+ name: "compare_stocks",
4553
+ description: "\u65E0\u72B6\u6001\u540C\u884C\u6307\u6807\u6BD4\u8F83\uFF1A\u5148\u7528\u73B0\u6709\u8D22\u52A1/\u884C\u60C5\u5DE5\u5177\u53D6\u6570\uFF0C\u518D\u4F20companies\uFF1B\u4EC5\u76F8\u540Cunit/basis/period\u53EF\u6392\u5E8F\uFF0C\u7F3A\u5931\u4E0D\u586B\u96F6\uFF0C\u4E0D\u751F\u6210\u4E70\u5356\u7EFC\u5408\u5206\u3002",
4554
+ parameters: typebox_exports.Object({
4555
+ companies: typebox_exports.Array(typebox_exports.Object({
4556
+ symbol: typebox_exports.String({ "description": "\u552F\u4E00\u80A1\u7968\u4EE3\u7801" }),
4557
+ period: typebox_exports.String({ "description": "\u7EDF\u4E00\u53EF\u6BD4\u671F\u95F4\uFF1B\u8D22\u52A1\u7528\u62A5\u544A\u671F\uFF0C\u4F30\u503C\u7528\u4F30\u503C\u65E5" }),
4558
+ metrics: typebox_exports.Array(typebox_exports.Object({
4559
+ name: typebox_exports.String({ "description": "\u6307\u6807\u540D\uFF0C\u5982pe/roe/net_income" }),
4560
+ value: typebox_exports.Union([typebox_exports.Number(), typebox_exports.Null()], { "description": "\u6709\u9650\u6570\u503C\uFF1B\u7F3A\u5931\u4E3Anull" }),
4561
+ unit: typebox_exports.String({ "description": "\u7CBE\u786E\u5355\u4F4D\uFF0C\u5982multiple/percent/fraction/CNY/USD" }),
4562
+ basis: typebox_exports.String({ "description": "\u53E3\u5F84\uFF0C\u5982TTM/annual/consolidated\uFF1B\u533A\u5206\u7D2F\u8BA1\u4E0E\u5355\u5B63" }),
4563
+ source: typebox_exports.Optional(typebox_exports.String({ "description": "\u539F\u59CB\u8BC1\u636EURL\u6216\u5B57\u6BB5\u8DEF\u5F84" }))
4564
+ }, { "additionalProperties": false }), { "description": "\u7ED3\u6784\u5316\u6307\u6807\uFF0C\u5355\u4F4D\u3001\u53E3\u5F84\u660E\u786E\uFF0C\u7F3A\u5931\u4E0D\u586B\u96F6" })
4565
+ }, { "additionalProperties": false }), { "description": "2..30\u5BB6\u516C\u53F8\uFF0C\u8C03\u7528\u65B9\u786E\u8BA4\u53EF\u6BD4\u6027" })
4566
+ }, { "additionalProperties": false }),
4567
+ async execute(_id, params) {
4568
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["peers", "--input", path])));
4569
+ }
4570
+ });
4571
+ api.registerTool({
4572
+ name: "analyze_disclosure_changes",
4573
+ description: "\u65E0\u72B6\u6001\u516C\u544A\u8D22\u62A5\u6BD4\u8F83\uFF1A\u4F20\u65B0\u65E7\u6B63\u6587\u53CA\u6307\u6807\uFF0C\u8FD4\u56DE\u53D8\u66F4\u884C\u53F7\u3001\u6765\u6E90\u4E0E\u8D22\u52A1\u53D8\u5316\uFF1B\u8D1F/\u96F6\u57FA\u6570\u589E\u957F\u7387\u4E3Anull\u3002\u4E0D\u4E0B\u8F7DPDF\u3001\u4E0D\u4EE3\u66FF\u7ECF\u6D4E\u89E3\u8BFB\u3002",
4574
+ parameters: typebox_exports.Object({
4575
+ previous: typebox_exports.Object({
4576
+ text: typebox_exports.String({ "description": "\u5DF2\u6838\u5B9E\u6B63\u6587\uFF0C\u6700\u591A200000\u5B57\u7B26\uFF1B\u4FDD\u7559\u6362\u884C\uFF0CPDF\u9700\u5BBF\u4E3B\u63D0\u53D6" }),
4577
+ source: typebox_exports.String({ "description": "\u539F\u6587URL\u6216\u6587\u6863\u6807\u8BC6" }),
4578
+ period: typebox_exports.String({ "description": "\u62A5\u544A\u671F\uFF0C\u59822025\u5E74\u5EA6" }),
4579
+ metrics: typebox_exports.Array(typebox_exports.Object({
4580
+ name: typebox_exports.String({ "description": "\u6307\u6807\u540D\uFF0C\u5982pe/roe/net_income" }),
4581
+ value: typebox_exports.Union([typebox_exports.Number(), typebox_exports.Null()], { "description": "\u6709\u9650\u6570\u503C\uFF1B\u7F3A\u5931\u4E3Anull" }),
4582
+ unit: typebox_exports.String({ "description": "\u7CBE\u786E\u5355\u4F4D\uFF0C\u5982multiple/percent/fraction/CNY/USD" }),
4583
+ basis: typebox_exports.String({ "description": "\u53E3\u5F84\uFF0C\u5982TTM/annual/consolidated\uFF1B\u533A\u5206\u7D2F\u8BA1\u4E0E\u5355\u5B63" }),
4584
+ source: typebox_exports.Optional(typebox_exports.String({ "description": "\u539F\u59CB\u8BC1\u636EURL\u6216\u5B57\u6BB5\u8DEF\u5F84" }))
4585
+ }, { "additionalProperties": false }), { "description": "\u7ED3\u6784\u5316\u6307\u6807\uFF0C\u5355\u4F4D\u3001\u53E3\u5F84\u660E\u786E\uFF0C\u7F3A\u5931\u4E0D\u586B\u96F6" })
4586
+ }, { "additionalProperties": false }),
4587
+ current: typebox_exports.Object({
4588
+ text: typebox_exports.String({ "description": "\u5DF2\u6838\u5B9E\u6B63\u6587\uFF0C\u6700\u591A200000\u5B57\u7B26\uFF1B\u4FDD\u7559\u6362\u884C\uFF0CPDF\u9700\u5BBF\u4E3B\u63D0\u53D6" }),
4589
+ source: typebox_exports.String({ "description": "\u539F\u6587URL\u6216\u6587\u6863\u6807\u8BC6" }),
4590
+ period: typebox_exports.String({ "description": "\u62A5\u544A\u671F\uFF0C\u59822025\u5E74\u5EA6" }),
4591
+ metrics: typebox_exports.Array(typebox_exports.Object({
4592
+ name: typebox_exports.String({ "description": "\u6307\u6807\u540D\uFF0C\u5982pe/roe/net_income" }),
4593
+ value: typebox_exports.Union([typebox_exports.Number(), typebox_exports.Null()], { "description": "\u6709\u9650\u6570\u503C\uFF1B\u7F3A\u5931\u4E3Anull" }),
4594
+ unit: typebox_exports.String({ "description": "\u7CBE\u786E\u5355\u4F4D\uFF0C\u5982multiple/percent/fraction/CNY/USD" }),
4595
+ basis: typebox_exports.String({ "description": "\u53E3\u5F84\uFF0C\u5982TTM/annual/consolidated\uFF1B\u533A\u5206\u7D2F\u8BA1\u4E0E\u5355\u5B63" }),
4596
+ source: typebox_exports.Optional(typebox_exports.String({ "description": "\u539F\u59CB\u8BC1\u636EURL\u6216\u5B57\u6BB5\u8DEF\u5F84" }))
4597
+ }, { "additionalProperties": false }), { "description": "\u7ED3\u6784\u5316\u6307\u6807\uFF0C\u5355\u4F4D\u3001\u53E3\u5F84\u660E\u786E\uFF0C\u7F3A\u5931\u4E0D\u586B\u96F6" })
4598
+ }, { "additionalProperties": false }),
4599
+ max_changes: typebox_exports.Optional(typebox_exports.Number({ "description": "\u53D8\u5316\u4E0A\u96501..100\uFF0C\u9ED8\u8BA430" }))
4600
+ }, { "additionalProperties": false }),
4601
+ async execute(_id, params) {
4602
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["disclosure", "--input", path])));
4603
+ }
4604
+ });
4605
+ api.registerTool({
4606
+ name: "analyze_portfolio_risk",
4607
+ description: "\u65E0\u72B6\u6001\u73B0\u8D27\u591A\u5934\u7EC4\u5408\u98CE\u9669\uFF1A\u8F93\u5165\u6301\u4ED3\u3001\u57FA\u51C6\u5E01\u79CD\u73B0\u91D1\u4E0E\u6C47\u7387\uFF0C\u8FD4\u56DE\u96C6\u4E2D\u5EA6\u3001\u5E01\u79CD/\u884C\u4E1A\u655E\u53E3\u3001\u4EF7\u683C\u76C8\u4E8F\u548C\u6B62\u635F\u60C5\u666F\u3002\u7F3A\u6C47\u7387\u62A5\u9519\uFF1B\u4E0D\u4FDD\u5B58\u8D26\u6237\u3002",
4608
+ parameters: typebox_exports.Object({
4609
+ positions: typebox_exports.Array(typebox_exports.Object({
4610
+ symbol: typebox_exports.String({ "description": "\u552F\u4E00\u4EE3\u7801\uFF0C\u91CD\u590D\u6301\u4ED3\u5148\u6C47\u603B" }),
4611
+ quantity: typebox_exports.Number({ "description": "\u6B63\u6301\u4ED3\u6570\u91CF" }),
4612
+ price: typebox_exports.Number({ "description": "\u6B63\u73B0\u4EF7" }),
4613
+ currency: typebox_exports.String({ "description": "\u6301\u4ED3\u5E01\u79CD\uFF0C\u5982CNY/USD/HKD" }),
4614
+ cost: typebox_exports.Optional(typebox_exports.Number({ "description": "\u540C\u5E01\u79CD\u6B63\u6210\u672C\u4EF7\uFF0C\u53EF\u9009" })),
4615
+ stop_price: typebox_exports.Optional(typebox_exports.Number({ "description": "\u540C\u5E01\u79CD\u6B63\u6B62\u635F\u4EF7\uFF0C\u53EF\u9009" })),
4616
+ sector: typebox_exports.Optional(typebox_exports.String({ "description": "\u7EDF\u4E00\u884C\u4E1A\u5206\u7C7B\uFF0C\u53EF\u9009" })),
4617
+ as_of: typebox_exports.Optional(typebox_exports.String({ "description": "\u5B9E\u9645\u4F30\u503C\u65F6\u70B9\uFF0C\u5EFA\u8BAEISO8601" }))
4618
+ }, { "additionalProperties": false }), { "description": "1..100\u4E2A\u73B0\u8D27\u591A\u5934\u6301\u4ED3" }),
4619
+ base_currency: typebox_exports.String({ "description": "\u57FA\u51C6\u5E01\u79CD" }),
4620
+ cash: typebox_exports.Number({ "description": "\u57FA\u51C6\u5E01\u79CD\u73B0\u91D1\uFF0C\u975E\u8D1F" }),
4621
+ fx_rates: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Object({
4622
+ currency: typebox_exports.String({ "description": "\u552F\u4E00\u975E\u57FA\u51C6\u5E01\u79CD" }),
4623
+ rate: typebox_exports.Number({ "description": "\u4E00\u5355\u4F4D\u8BE5\u5E01\u79CD\u5BF9\u5E94\u591A\u5C11\u57FA\u51C6\u5E01\u79CD\uFF0C\u6B63\u6570" })
4624
+ }, { "additionalProperties": false }), { "description": "\u663E\u5F0F\u73B0\u4EF7\u6C47\u7387\uFF1B\u57FA\u51C6\u5E01\u79CD\u9690\u542B1\uFF0C\u4E0D\u5F97\u91CD\u590D" })),
4625
+ histories: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Object({
4626
+ symbol: typebox_exports.String({ "description": "\u5BF9\u5E94\u552F\u4E00\u6301\u4ED3\u80A1\u7968" }),
4627
+ prices: typebox_exports.Array(typebox_exports.Object({
4628
+ date: typebox_exports.String({ "description": "YYYY-MM-DD\uFF0C\u552F\u4E00\u65E5\u671F" }),
4629
+ close: typebox_exports.Number({ "description": "\u6B63\u6709\u9650\u6536\u76D8\u4EF7" })
4630
+ }, { "additionalProperties": false }), { "description": "\u5B8C\u6574\u65E5K\u6536\u76D8\u5E8F\u5217\uFF0C2..20000\u6761\uFF0C\u4E0D\u5F97\u8DE8\u80A1\u7968\u6216\u6DF7\u7528\u590D\u6743\u53E3\u5F84" })
4631
+ }, { "additionalProperties": false }), { "description": "\u53EF\u9009\u5386\u53F2\uFF0C\u5171\u540C\u65E5\u671F\u672C\u5E01\u4EF7\u683C\u6536\u76CA\u76F8\u5173\u6027\uFF0C\u4E0D\u8BA1\u6C47\u7387" }))
4632
+ }, { "additionalProperties": false }),
4633
+ async execute(_id, params) {
4634
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["portfolio", "--input", path])));
4635
+ }
4636
+ });
4637
+ api.registerTool({
4638
+ name: "calculate_position_size",
4639
+ description: "\u65E0\u72B6\u6001\u591A\u5934\u4ED3\u4F4D\u9884\u7B97\uFF1A\u540C\u5E01\u79CD\u91D1\u989D\uFF0C\u6309\u73B0\u91D1/\u98CE\u9669\u9884\u7B97/\u6700\u5927\u4ED3\u4F4D/\u4EA4\u6613\u5355\u4F4D\u53D6\u6700\u5C0F\u6570\u91CF\uFF0C\u53CC\u8FB9\u8D39\u7528\u548C\u6ED1\u70B9\u53C2\u4E0E\u6B62\u635F\u60C5\u666F\uFF1B\u4E0D\u6267\u884C\u4EA4\u6613\u3002",
4640
+ parameters: typebox_exports.Object({
4641
+ equity: typebox_exports.Number({ "description": "\u603B\u6743\u76CA\uFF0C\u6B63\u6570" }),
4642
+ cash: typebox_exports.Number({ "description": "\u53EF\u7528\u73B0\u91D1\uFF0C0..equity" }),
4643
+ entry_price: typebox_exports.Number({ "description": "\u8BA1\u5212\u5165\u573A\u4EF7\uFF0C\u6B63\u6570" }),
4644
+ stop_price: typebox_exports.Number({ "description": "\u6B63\u6B62\u635F\u4EF7\uFF0C\u4F4E\u4E8E\u5165\u573A\u4EF7" }),
4645
+ risk_fraction: typebox_exports.Number({ "description": "\u5355\u7B14\u98CE\u9669\u5360\u6743\u76CA\u6BD4\u4F8B0..1\uFF0C\u59820.01" }),
4646
+ lot_size: typebox_exports.Number({ "description": "\u6B63\u6574\u6570\u4EA4\u6613\u5355\u4F4D\uFF0C\u7528\u6237\u786E\u8BA4\uFF0C\u4E0D\u731C\u6E2F\u80A1\u6BCF\u624B\u6570\u91CF" }),
4647
+ max_position_fraction: typebox_exports.Optional(typebox_exports.Number({ "description": "\u672C\u6B21\u4E70\u5165\u6700\u5927\u8D44\u91D1\u5360\u6BD40..1\uFF0C\u9ED8\u8BA41\uFF1B\u5DF2\u6709\u540C\u80A1\u6301\u4ED3\u5148\u6263\u51CF\u989D\u5EA6" })),
4648
+ fee_rate: typebox_exports.Optional(typebox_exports.Number({ "description": "\u6BCF\u8FB9\u6BD4\u4F8B\u8D39\u75280..0.1\uFF0C\u9ED8\u8BA40\uFF1B\u4E0D\u542B\u672A\u63D0\u4F9B\u7A0E\u8D39/\u6700\u4F4E\u6536\u8D39" })),
4649
+ slippage_rate: typebox_exports.Optional(typebox_exports.Number({ "description": "\u6BCF\u8FB9\u6ED1\u70B90..0.1\uFF0C\u9ED8\u8BA40" }))
4650
+ }, { "additionalProperties": false }),
4651
+ async execute(_id, params) {
4652
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["position_size", "--input", path])));
4653
+ }
4654
+ });
4655
+ api.registerTool({
4656
+ name: "analyze_event_study",
4657
+ description: "\u65E0\u72B6\u6001\u4E8B\u4EF6\u7814\u7A76\uFF1A\u63D0\u4F9B\u540C\u5E02\u573A\u80A1\u7968\u53CA\u57FA\u51C6\u5B8C\u6574\u4EF7\u683C\u3001\u4E8B\u4EF6\u65E5\u671F\uFF1B\u4E8B\u4EF6\u524D\u4E00\u4EA4\u6613\u65E5\u6536\u76D8\u4E3A\u57FA\u70B9\uFF0C\u8BA1\u7B97\u4EA4\u6613\u65E5\u7A97\u53E3\u6536\u76CA\u5DEE\u3002\u7F3A\u7A97\u53E3/\u57FA\u51C6\u4E3Anull\uFF0C\u6807\u6CE8\u91CD\u53E0\uFF0C\u4E0D\u63A8\u65AD\u56E0\u679C\u3002",
4658
+ parameters: typebox_exports.Object({
4659
+ prices: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Object({
4660
+ date: typebox_exports.String({ "description": "YYYY-MM-DD\uFF0C\u552F\u4E00\u65E5\u671F" }),
4661
+ close: typebox_exports.Number({ "description": "\u6B63\u6709\u9650\u6536\u76D8\u4EF7" })
4662
+ }, { "additionalProperties": false }), { "description": "\u5B8C\u6574\u65E5K\u6536\u76D8\u5E8F\u5217\uFF0C2..20000\u6761\uFF0C\u4E0D\u5F97\u8DE8\u80A1\u7968\u6216\u6DF7\u7528\u590D\u6743\u53E3\u5F84" })),
4663
+ benchmark_prices: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Object({
4664
+ date: typebox_exports.String({ "description": "YYYY-MM-DD\uFF0C\u552F\u4E00\u65E5\u671F" }),
4665
+ close: typebox_exports.Number({ "description": "\u6B63\u6709\u9650\u6536\u76D8\u4EF7" })
4666
+ }, { "additionalProperties": false }), { "description": "\u5B8C\u6574\u65E5K\u6536\u76D8\u5E8F\u5217\uFF0C2..20000\u6761\uFF0C\u4E0D\u5F97\u8DE8\u80A1\u7968\u6216\u6DF7\u7528\u590D\u6743\u53E3\u5F84" })),
4667
+ event_dates: typebox_exports.Array(typebox_exports.String({ "description": "YYYY-MM-DD\uFF0C\u76D8\u540E\u516C\u544A\u4F20\u4E0B\u4E00\u4EA4\u6613\u65E5" }), { "description": "1..100\u4E2A\u552F\u4E00\u4E8B\u4EF6\u65E5" }),
4668
+ price_basis: typebox_exports.Optional(typebox_exports.String({ "description": "\u4EC5\u663E\u5F0Fprices\u6A21\u5F0F\u5FC5\u9700\uFF1B\u4EE3\u7801\u6A21\u5F0F\u62A5\u544A\u5B9E\u9645\u63D0\u4F9B\u65B9\u6807\u8BB0\uFF0C\u7F3A\u5931\u4E3Aunknown\uFF0C\u987B\u6838\u5B9E" })),
4669
+ horizons: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Number({ "description": "0=\u4E8B\u4EF6\u65E5\uFF0C1=\u4E0B\u4E00\u4EA4\u6613\u65E5\uFF1B\u6574\u65700..250" }), { "description": "1..20\u4E2A\u7A97\u53E3\uFF0C\u9ED8\u8BA40/1/5/10/20" })),
4670
+ start_date: typebox_exports.Optional(typebox_exports.String({ "description": "\u4EE3\u7801\u6A21\u5F0F\u5FC5\u9700\uFF0CYYYY-MM-DD\uFF0C\u5305\u542B\u4E8B\u4EF6\u524D\u57FA\u51C6\u65E5\u6216\u8BAD\u7EC3\u7A97\u53E3" })),
4671
+ end_date: typebox_exports.Optional(typebox_exports.String({ "description": "\u4EE3\u7801\u6A21\u5F0F\u5FC5\u9700\uFF0CYYYY-MM-DD\uFF0C\u665A\u4E8Estart_date" })),
4672
+ symbol: typebox_exports.Optional(typebox_exports.String({ "description": "\u80A1\u7968\u4EE3\u7801\uFF1B\u4E0Ebenchmark/start_date/end_date\u4E00\u8D77\u76F4\u63A5\u53D6\u6570\uFF0C\u548Cprices\u6A21\u5F0F\u4E92\u65A5" })),
4673
+ benchmark: typebox_exports.Optional(typebox_exports.String({ "description": "\u540C\u5E02\u573A\u57FA\u51C6\u4EE3\u7801\uFF1B\u4E0Esymbol\u4E00\u8D77\u4F7F\u7528" }))
4674
+ }, { "additionalProperties": false }),
4675
+ async execute(_id, params) {
4676
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["event_study", "--input", path])));
4677
+ }
4678
+ });
4679
+ api.registerTool({
4680
+ name: "validate_backtest",
4681
+ description: "\u65E0\u72B6\u6001\u56DE\u6D4B\u7A33\u5065\u6027\uFF1A\u8F93\u5165\u5386\u53F2OHLCV\u548C\u5B8C\u6574\u5019\u9009DSL\uFF1B\u6EDA\u52A8\u8BAD\u7EC3\u9009\u53C2\u6570\u3001\u540E\u7EED\u4E0D\u91CD\u53E0\u7A97\u53E3\u9A8C\u8BC1\uFF0C\u5217\u51FA\u5168\u90E8\u6837\u672C\u5185\u654F\u611F\u6027\u53CA\u8DE8\u6807\u7684\u7ED3\u679C\u3002\u4EC5next_open\uFF0C\u4E0D\u81EA\u52A8\u4F18\u5316\u6216\u4FDD\u5B58\u3002",
4682
+ parameters: typebox_exports.Object({
4683
+ datasets: typebox_exports.Optional(typebox_exports.Array(typebox_exports.Object({
4684
+ symbol: typebox_exports.String({ "description": "\u552F\u4E00\u80A1\u7968\u4EE3\u7801" }),
4685
+ price_basis: typebox_exports.String({ "description": "\u5DF2\u6838\u5B9E\u590D\u6743/\u539F\u59CB\u4EF7\u683C\u53E3\u5F84" }),
4686
+ bars: typebox_exports.Array(typebox_exports.Object({
4687
+ date: typebox_exports.String({ "description": "YYYY-MM-DD" }),
4688
+ open: typebox_exports.Number({ "description": "\u6709\u9650OHLCV\uFF1B\u4EF7\u683C\u4E3A\u6B63\u3001volume\u975E\u8D1F" }),
4689
+ high: typebox_exports.Number({ "description": "\u6709\u9650OHLCV\uFF1B\u4EF7\u683C\u4E3A\u6B63\u3001volume\u975E\u8D1F" }),
4690
+ low: typebox_exports.Number({ "description": "\u6709\u9650OHLCV\uFF1B\u4EF7\u683C\u4E3A\u6B63\u3001volume\u975E\u8D1F" }),
4691
+ close: typebox_exports.Number({ "description": "\u6709\u9650OHLCV\uFF1B\u4EF7\u683C\u4E3A\u6B63\u3001volume\u975E\u8D1F" }),
4692
+ volume: typebox_exports.Number({ "description": "\u6709\u9650OHLCV\uFF1B\u4EF7\u683C\u4E3A\u6B63\u3001volume\u975E\u8D1F" })
4693
+ }, { "additionalProperties": false }), { "description": "\u65E5\u671F\u9012\u589E\u5B8C\u6574OHLCV\uFF0C\u6BCF\u7EC4\u6700\u591A2000\u6761\uFF0C\u81F3\u5C11train_bars+test_bars" })
4694
+ }, { "additionalProperties": false }), { "description": "1..5\u4E2A\u6807\u7684\uFF0C\u590D\u7528get_kline\u53D6\u6570" })),
4695
+ strategies: typebox_exports.Array(typebox_exports.Object({
4696
+ name: typebox_exports.String({ "description": "\u552F\u4E00\u5019\u9009\u540D" }),
4697
+ strategy: typebox_exports.Object({}, { "additionalProperties": true, "description": "\u5B8C\u6574\u65E2\u6709YAML DSL\u5BF9\u5E94JSON\uFF0C\u5141\u8BB8parameters\u5F15\u7528\uFF1B\u4EC5next_open" })
4698
+ }, { "additionalProperties": false }), { "description": "1..5\u4E2A\u9884\u5148\u786E\u5B9A\u7684\u5019\u9009\uFF0C\u7981\u6B62\u6D4B\u8BD5\u7ED3\u679C\u56DE\u8C03\u53C2\u6570" }),
4699
+ train_bars: typebox_exports.Optional(typebox_exports.Number({ "description": "\u8BAD\u7EC3\u4EA4\u6613\u65E5\u657030..1000\uFF0C\u9ED8\u8BA4126" })),
4700
+ test_bars: typebox_exports.Optional(typebox_exports.Number({ "description": "\u6D4B\u8BD5\u4EA4\u6613\u65E5\u657030..1000\uFF0C\u9ED8\u8BA463" })),
4701
+ capital: typebox_exports.Optional(typebox_exports.Number({ "description": "\u6BCF\u7A97\u53E3\u521D\u59CB\u8D44\u91D1\uFF0C\u9ED8\u8BA41000000" })),
4702
+ start_date: typebox_exports.Optional(typebox_exports.String({ "description": "\u4EE3\u7801\u6A21\u5F0F\u5FC5\u9700\uFF0CYYYY-MM-DD\uFF0C\u5305\u542B\u4E8B\u4EF6\u524D\u57FA\u51C6\u65E5\u6216\u8BAD\u7EC3\u7A97\u53E3" })),
4703
+ end_date: typebox_exports.Optional(typebox_exports.String({ "description": "\u4EE3\u7801\u6A21\u5F0F\u5FC5\u9700\uFF0CYYYY-MM-DD\uFF0C\u665A\u4E8Estart_date" })),
4704
+ symbols: typebox_exports.Optional(typebox_exports.Array(typebox_exports.String(), { "description": "1..5\u4E2A\u552F\u4E00\u80A1\u7968\u4EE3\u7801\uFF0C\u914D\u5408start_date/end_date\u76F4\u63A5\u53D6\u6570\uFF1B\u548Cdatasets\u4E92\u65A5" }))
4705
+ }, { "additionalProperties": false }),
4706
+ async execute(_id, params) {
4707
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["robustness", "--input", path])));
4708
+ }
4709
+ });
4710
+ api.registerTool({
4711
+ name: "compare_analysis_snapshots",
4712
+ description: "\u65E0\u72B6\u6001\u5FEB\u7167\u6BD4\u8F83\uFF1A\u4F20\u65B0\u65E7JSON\uFF0C\u8FD4\u56DEJSON Pointer\u53CA\u65B0\u589E/\u5220\u9664/\u53D8\u5316/\u5931\u6548/\u6062\u590D\uFF1B\u4E0D\u4FDD\u5B58\u5FEB\u7167\u3002\u6570\u7EC4\u6574\u4F53\u6BD4\u8F83\uFF0C\u8C03\u7528\u524D\u6309symbol\u5BF9\u9F50\u3002",
4713
+ parameters: typebox_exports.Object({
4714
+ previous: typebox_exports.Object({}, { "additionalProperties": true, "description": "JSON\u5BF9\u8C61\uFF0C\u8BE6\u89C1\u5171\u4EABSkill\u4E0EREADME" }),
4715
+ current: typebox_exports.Object({}, { "additionalProperties": true, "description": "JSON\u5BF9\u8C61\uFF0C\u8BE6\u89C1\u5171\u4EABSkill\u4E0EREADME" })
4716
+ }, { "additionalProperties": false }),
4717
+ async execute(_id, params) {
4718
+ return asText(await withJsonInput(params, (path) => runPy("stateless_analysis.py", ["snapshot", "--input", path])));
4719
+ }
4720
+ });
4470
4721
  api.registerTool({
4471
4722
  name: "get_announcements",
4472
4723
  description: "\u67E5\u8BE2A\u80A1\u5DE8\u6F6E\u516C\u544A\u6807\u9898\u3001\u65E5\u671F\u3001\u7C7B\u578B\u548C\u539F\u6587PDF\u94FE\u63A5\uFF1B\u6309\u65E5\u671F\u8303\u56F4/\u7C7B\u522B\u7B5B\u9009\uFF0C\u9ED8\u8BA4\u8FD190\u5929\uFF0Ctop=1..500\u3002\u7B2C\u4E00\u7248\u4E0D\u63D0\u53D6\u6B63\u6587\uFF0Ctruncated\u63D0\u793A\u622A\u65AD\u3002",
@@ -4588,7 +4839,7 @@ var index_default = definePluginEntry({
4588
4839
  });
4589
4840
  api.registerTool({
4590
4841
  name: "get_kline",
4591
- description: "\u83B7\u53D6\u80A1\u7968K\u7EBF\u6570\u636E\uFF08OHLCV\uFF09\u3002\u652F\u6301A\u80A1\uFF08\u5982600519\uFF09\u3001\u6E2F\u80A1\uFF08\u598200700.HK\uFF09\u3001\u7F8E\u80A1\uFF08\u5982AAPL\uFF09\u3001\u65E5\u80A1\uFF08\u59827203.T\uFF09\u3001\u97E9\u80A1\uFF08\u5982005930.KS\uFF09\u3001\u53F0\u80A1\uFF08\u59822330.TW\uFF09\u53CAA\u80A1ETF\u3002A\u80A1\u80A1\u7968/ETF\u8FD4\u56DE\u524D\u590D\u6743\u4EF7\u683C\uFF0C\u6BCF\u6761\u8BB0\u5F55 adjusted=qfq\uFF1Bsh000xxx/sz399xxx \u6307\u6570\u8FD4\u56DE\u539F\u59CB\u70B9\u4F4D\uFF0Cadjusted=none\u3002\u9700\u8981\u5386\u53F2\u4EF7\u683C\u81EA\u884C\u8BA1\u7B97\u6216\u753B\u56FE\u65F6\u7528\uFF1B\u53EA\u95EE\u6307\u6807\u7528 get_technical_analysis\uFF0C\u53EA\u95EE\u73B0\u4EF7\u7528 get_quote",
4842
+ description: "\u83B7\u53D6\u80A1\u7968K\u7EBF\u6570\u636E\uFF08OHLCV\uFF09\u3002\u652F\u6301A\u80A1\uFF08\u5982600519\uFF09\u3001\u6E2F\u80A1\uFF08\u598200700.HK\uFF09\u3001\u7F8E\u80A1\uFF08\u5982AAPL\uFF09\u3001\u65E5\u80A1\uFF08\u59827203.T\uFF09\u3001\u97E9\u80A1\uFF08\u5982005930.KS\uFF09\u3001\u53F0\u80A1\uFF08\u59822330.TW\uFF09\u53CAA\u80A1ETF\u3002A\u80A1\u80A1\u7968/ETF\u8FD4\u56DE\u524D\u590D\u6743\u4EF7\u683C\uFF0C\u6BCF\u6761\u8BB0\u5F55 adjusted=qfq\uFF1Bsh000xxx/sz399xxx \u6307\u6570\u8FD4\u56DE\u539F\u59CB\u70B9\u4F4D\uFF0Cadjusted=none\u3002\u9700\u8981\u5386\u53F2\u4EF7\u683C\u81EA\u884C\u8BA1\u7B97\u6216\u753B\u56FE\u65F6\u7528\uFF1B\u53EA\u95EE\u6307\u6807\u7528 get_technical_analysis\uFF0C\u53EA\u95EE\u73B0\u4EF7\u7528 get_quote\u3002\u6BCF\u6761\u8BB0\u5F55\u9644 source\u3001UTC fetched_at\u3001data_as_of \u548C adjusted\uFF1B\u975EA\u80A1\u590D\u6743\u53E3\u5F84\u53EF\u80FD\u4E3Atotal_return/qfq/unknown\uFF0C\u672A\u77E5\u4E0D\u80FD\u5047\u5B9A\u5DF2\u590D\u6743\u3002\u90E8\u5206\u6765\u6E90\u9644 adjustment_factor\uFF08\u590D\u6743\u4EF7\u683C/\u539F\u59CB\u4EF7\u683C\uFF09\uFF1B\u7F3A\u5931\u4E0D\u80FD\u731C\u6D4B\u6362\u7B97\u7CFB\u6570\u3002",
4592
4843
  parameters: typebox_exports.Object({
4593
4844
  symbol: typebox_exports.String({
4594
4845
  description: "\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519\uFF08A\u80A1\uFF09\u300100700.HK\uFF08\u6E2F\u80A1\uFF09\u3001AAPL\uFF08\u7F8E\u80A1\uFF09\u30017203.T\uFF08\u65E5\u80A1\uFF09\u3001005930.KS\uFF08\u97E9\u80A1\uFF09\u30012330.TW\uFF08\u53F0\u80A1\uFF09"
@@ -4615,7 +4866,7 @@ var index_default = definePluginEntry({
4615
4866
  });
4616
4867
  api.registerTool({
4617
4868
  name: "get_quote",
4618
- 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\uFF1B\u975E\u4EA4\u6613\u65F6\u6BB5\u8FD4\u56DE\u6700\u8FD1\u4EA4\u6613\u65E5\u6536\u76D8\u4EF7\u5E76\u4EE5 as_of/stale \u6807\u6CE8\uFF1BETF \u7684 premium_discount_rate \u4E3A\u6B63=\u6EA2\u4EF7\u3001\u8D1F=\u6298\u4EF7",
4869
+ 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\uFF1B\u975E\u4EA4\u6613\u65F6\u6BB5\u8FD4\u56DE\u6700\u8FD1\u4EA4\u6613\u65E5\u6536\u76D8\u4EF7\u5E76\u4EE5 as_of/stale \u6807\u6CE8\uFF1BETF \u7684 premium_discount_rate \u4E3A\u6B63=\u6EA2\u4EF7\u3001\u8D1F=\u6298\u4EF7\u3002\u8FD4\u56DE source\u3001UTC fetched_at \u548C\u63D0\u4F9B\u65B9 data_as_of\uFF08\u672A\u77E5\u4E3Anull\uFF09\uFF1Bas_of_basis\u533A\u5206\u63D0\u4F9B\u65B9\u65F6\u95F4\u4E0E\u4EA4\u6613\u65E5\u5386\u63A8\u65AD\uFF0C\u91C7\u96C6\u65F6\u95F4\u4E0D\u7B49\u4E8E\u884C\u60C5\u65F6\u95F4\u3002",
4619
4870
  parameters: typebox_exports.Object({
4620
4871
  symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" })
4621
4872
  }),
@@ -4689,7 +4940,7 @@ var index_default = definePluginEntry({
4689
4940
  });
4690
4941
  api.registerTool({
4691
4942
  name: "get_technical_analysis",
4692
- 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\uFF1B\u591A\u5468\u671F\u5171\u632F\u65F6 resonance.direction \u2208 aligned_bullish/aligned_bearish/divergent\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",
4943
+ 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\uFF1B\u9644 trend_temperature\uFF08\u5B9E\u9A8C\u6027EMA\u5DEE/ATR\u63CF\u8FF0\uFF1Bdirection\u4E3A\u5747\u7EBF\u65B9\u5411\uFF1Bvalidation_status=not_validated\uFF0C\u975E\u661F\u7403\u6307\u6807\uFF0C\u4E03\u6863\u4E0D\u4F5C\u5165\u573A\u4F9D\u636E\uFF1B\u53E6\u9644 trend_horizons\uFF1A21/63/252\u6839\u65E5K\u6708\u5EA6\u52A8\u91CF\uFF0C\u5EFA\u8BAEcount=360\uFF0C\u975E\u6982\u7387\u3001\u672A\u9A8C\u8BC1\uFF09\uFF1B\u591A\u5468\u671F\u5171\u632F\u65F6 resonance.direction \u2208 aligned_bullish/aligned_bearish/divergent\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",
4693
4944
  parameters: typebox_exports.Object({
4694
4945
  symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
4695
4946
  period: typebox_exports.Optional(
@@ -4980,7 +5231,7 @@ var index_default = definePluginEntry({
4980
5231
  });
4981
5232
  api.registerTool({
4982
5233
  name: "screen_stocks",
4983
- description: "\u5168\u5E02\u573A\u80A1\u7968\u7B5B\u9009\uFF08AlphaSift L1 \u591A\u56E0\u5B50\u786C\u7B5B + \u5E02\u573A\u60C5\u7EEA\u8C03\u8282\uFF09\u3002\u6309PE/PB/\u5E02\u503C/\u6362\u624B\u7387/\u6DA8\u8DCC\u5E45/\u91CF\u6BD4\u7B49\u56E0\u5B50\u8FC7\u6EE4\u548C\u8BC4\u5206\uFF0C\u53EF\u7528 l2 \u5F00\u542F\u8D28\u91CF/\u6210\u957F/\u52A8\u91CF/\u6CE2\u52A8\u7387/\u8D44\u91D1\u6D41\u589E\u5F3A\u3002\u663E\u5F0F\u7B5B\u9009\u6761\u4EF6\u7F3A\u5C11\u6570\u636E\u65F6\u62A5error\uFF0Cfilters_applied\u53EA\u5217\u5B9E\u9645\u6267\u884C\u7684\u6761\u4EF6",
5234
+ description: "\u5168\u5E02\u573A\u80A1\u7968\u7B5B\u9009\uFF08AlphaSift L1 \u591A\u56E0\u5B50\u786C\u7B5B + \u5E02\u573A\u60C5\u7EEA\u8C03\u8282\uFF09\u3002\u6309PE/PB/\u5E02\u503C/\u6362\u624B\u7387/\u6DA8\u8DCC\u5E45/\u91CF\u6BD4\u7B49\u56E0\u5B50\u8FC7\u6EE4\u548C\u8BC4\u5206\uFF0C\u53EF\u7528 l2 \u5F00\u542F\u8D28\u91CF/\u6210\u957F/\u52A8\u91CF/\u6CE2\u52A8\u7387/\u8D44\u91D1\u6D41\u589E\u5F3A\u3002\u663E\u5F0F\u7B5B\u9009\u6761\u4EF6\u7F3A\u5C11\u6570\u636E\u65F6\u62A5error\uFF0Cfilters_applied\u53EA\u5217\u5B9E\u9645\u6267\u884C\u7684\u6761\u4EF6\u3002\u5019\u9009factor_coverage\u5217\u51FA\u53EF\u7528/\u7F3A\u5931\u56E0\u5B50\u3001\u52A0\u6743\u8986\u76D6\u7387\u548Ceffective_weights\uFF1BL1\u4E0EL2\u5747\u6309\u53EF\u7528\u56E0\u5B50\u5F52\u4E00\u5316\u540E\u6392\u5E8F\uFF0C\u7F3A\u5931/\u975E\u6709\u9650\u503C\u4E0D\u6309\u96F6\u5206\u8BA1\uFF1BL2\u53E6\u8FD4\u56DEeffective_scores\u4F9B\u7ED3\u5408\u5E02\u573A\u7CFB\u6570\u590D\u7B97final\uFF0C\u6309\u53EF\u7528\u56E0\u5B50\u91CD\u5F52\u4E00\u5316\uFF0C\u9AD8\u5206\u4E0D\u4EE3\u8868\u6570\u636E\u5B8C\u6574\u3002\u9009\u80A1\u9884\u7B97\u6309\u5019\u9009\u6570\u91CF\u53CA\u91C7\u96C6\u6279\u6B21\u8BA1\u7B97\uFF0Ctop\u987B\u4E3A\u6B63\u6574\u6570\u3002",
4984
5235
  parameters: typebox_exports.Object({
4985
5236
  market: typebox_exports.Optional(
4986
5237
  typebox_exports.Union(
@@ -5012,9 +5263,23 @@ var index_default = definePluginEntry({
5012
5263
  return asText(out);
5013
5264
  }
5014
5265
  });
5266
+ api.registerTool({
5267
+ name: "analyze_trend_strategy",
5268
+ description: "\u6708\u5EA6\u53F3\u4FA7\u8D8B\u52BF\u7B56\u7565\uFF1A\u76F4\u63A5\u4F20\u540C\u5E02\u573AA/HK/US\u80A1\u7968\u4EE3\u7801\uFF0C\u81EA\u52A8\u83B7\u53D6\u65E5K\uFF0C\u8F93\u51FA\u6708\u5EA6\u65B0\u5165/\u6301\u6709/\u9000\u51FA\u4E0E\u9006\u6CE2\u52A8\u9884\u7B97\u3002as_of\u9ED8\u8BA4\u6700\u8FD1\u5DF2\u6536\u76D8\u4EA4\u6613\u65E5\uFF0C\u6301\u4ED3\u53EF\u9009\u4E14\u4E0D\u4FDD\u5B58\uFF0C\u4E0D\u81EA\u52A8\u4E0B\u5355\uFF1B\u8DE8\u6837\u672C\u4ECDnot_validated\u3002",
5269
+ parameters: typebox_exports.Object({
5270
+ symbols: typebox_exports.Array(typebox_exports.String(), { description: "\u540C\u4E00\u5E02\u573A\u7684\u5B8C\u6574\u80A1\u7968\u6C60\uFF0C1..100\u53EA\uFF1BA\u5982600036\uFF0CHK\u59820700.HK\uFF0CUS\u5982AAPL" }),
5271
+ as_of: typebox_exports.Optional(typebox_exports.String({ description: "\u53EF\u9009\u5DF2\u6536\u76D8\u622A\u6B62\u65E5\u671FYYYY-MM-DD\uFF0C\u9ED8\u8BA4\u8BE5\u5E02\u573A\u6700\u8FD1\u5DF2\u6536\u76D8\u4EA4\u6613\u65E5" })),
5272
+ held_symbols: typebox_exports.Optional(typebox_exports.Array(typebox_exports.String(), { description: "\u53EF\u9009\uFF0Cas_of\u65F6\u771F\u5B9E\u6301\u80A1\u4EE3\u7801\uFF0C\u5FC5\u987B\u5728\u80A1\u7968\u6C60\u4E2D\uFF1B\u7701\u7565\u4EE3\u8868\u521D\u59CB\u7A7A\u4ED3\uFF0C\u4E0D\u4FDD\u5B58\u8D26\u6237" })),
5273
+ pending_exit_symbols: typebox_exports.Optional(typebox_exports.Array(typebox_exports.String(), { description: "\u53EF\u9009\uFF0C\u771F\u5B9E\u6301\u80A1\u4E2D\u6B64\u524D\u5DF2\u9501\u5B9A\u4E14\u672A\u6210\u4EA4\u7684\u9000\u51FA\u4EE3\u7801" })),
5274
+ slots: typebox_exports.Optional(typebox_exports.Number({ description: "\u53EF\u9009\u56FA\u5B9A\u5BB9\u91CFK\uFF0C\u9ED8\u8BA4ceil(N/3)\uFF0C\u4E0D\u5F97\u5C0F\u4E8E\u771F\u5B9E\u6301\u80A1\u6570\u91CF" }))
5275
+ }, { additionalProperties: false }),
5276
+ async execute(_id, params) {
5277
+ return asText(await withJsonInput(params, (path) => runPy("trend_strategy.py", ["fetch", "--input", path])));
5278
+ }
5279
+ });
5015
5280
  api.registerTool({
5016
5281
  name: "run_backtest",
5017
- 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\u3002period\u4E3A\u5B9E\u9645\u6570\u636E\u671F\u95F4\uFF0Crequested_period\u4FDD\u7559\u8BF7\u6C42\u671F\u95F4\uFF0Cwarnings\u63D0\u793A\u8986\u76D6\u5DEE\u5F02\uFF1B\u5E74\u5316\u6309\u5B9E\u9645\u671F\u95F4\u8BA1\u7B97",
5282
+ 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\u3002period\u4E3A\u5B9E\u9645\u6570\u636E\u671F\u95F4\uFF0Crequested_period\u4FDD\u7559\u8BF7\u6C42\u671F\u95F4\uFF0Cwarnings\u63D0\u793A\u8986\u76D6\u5DEE\u5F02\uFF1B\u5E74\u5316\u6309\u5B9E\u9645\u671F\u95F4\u8BA1\u7B97\u3002\u9ED8\u8BA4\u524D\u65E5\u6536\u76D8\u4FE1\u53F7\u3001\u6B21\u65E5\u5F00\u76D8\u6210\u4EA4\uFF1BYAML simulation.execution=same_close\u53EF\u590D\u73B0\u65E7\u5047\u8BBE\u3002execution\u8FD4\u56DE\u6A21\u578B\u3001\u963B\u6B62\u6210\u4EA4\u6B21\u6570\u548C\u672A\u6A21\u62DF\u7EA6\u675F\uFF1B\u96F6\u6210\u4EA4\u91CF\u53CA\u5E26\u5386\u53F2\u9650\u4EF7\u7684\u4E00\u5B57\u677F\u4E0D\u6210\u4EA4\u3002\u652F\u6301 monthly_momentum\uFF1A\u6708\u521D\u9996\u6839\u6709\u6548\u65E5K\u6536\u76D8\u89C2\u5BDF\u8FC7\u53BBperiod\u6839\u5BF9\u6570\u6536\u76CA\uFF0C\u6B21\u65E5\u5F00\u76D8\uFF1B\u957F\u5468\u671F\u9700\u9884\u70ED\u3002",
5018
5283
  parameters: typebox_exports.Object({
5019
5284
  strategy: typebox_exports.String({ description: "\u7B56\u7565YAML\u6587\u4EF6\u8DEF\u5F84" }),
5020
5285
  symbol: typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08A\u80A1\u5982600519\uFF0C\u7F8E\u80A1\u5982AAPL\uFF0C\u6E2F\u80A1\u598200700.HK\uFF09" }),
@@ -5323,7 +5588,7 @@ var index_default = definePluginEntry({
5323
5588
  });
5324
5589
  api.registerTool({
5325
5590
  name: "get_market_review",
5326
- description: "\u5927\u76D8\u590D\u76D8 \u2014 \u83B7\u53D6\u5E02\u573A\u65E5\u5EA6\u590D\u76D8\u6570\u636E\uFF0C\u5305\u542B\u6307\u6570\u3001\u6DA8\u8DCC\u7EDF\u8BA1\u3001\u677F\u5757\u6392\u540D\u3001\u65B0\u95FB\u3001\u5E02\u573A\u6E29\u5EA6\u4E0E\u7B56\u7565\u5EFA\u8BAE\u3002\u590D\u76D8\u7C7B\u9700\u6C42\u7684\u9996\u9009\uFF0C\u65E0\u9700\u518D\u5206\u522B\u8C03\u6307\u6570/\u7EDF\u8BA1/\u677F\u5757\u5DE5\u5177",
5591
+ description: "\u5927\u76D8\u590D\u76D8 \u2014 \u83B7\u53D6\u5E02\u573A\u65E5\u5EA6\u590D\u76D8\u6570\u636E\uFF0C\u5305\u542B\u6307\u6570\u3001\u6DA8\u8DCC\u7EDF\u8BA1\u3001\u677F\u5757\u6392\u540D\u3001\u65B0\u95FB\u3001\u5E02\u573A\u6E29\u5EA6\u4E0E\u7B56\u7565\u5EFA\u8BAE\u3002\u590D\u76D8\u7C7B\u9700\u6C42\u7684\u9996\u9009\uFF0C\u65E0\u9700\u518D\u5206\u522B\u8C03\u6307\u6570/\u7EDF\u8BA1/\u677F\u5757\u5DE5\u5177\u3002\u6570\u636E\u4E0D\u8DB3\u65F6\u6E29\u5EA6score\u53CAstrategy_stance\u4E3Anull\uFF0C\u4FE1\u53F7unknown\uFF1Bwarnings/data_quality\u8BF4\u660E\u9650\u5236",
5327
5592
  parameters: typebox_exports.Object({
5328
5593
  market: typebox_exports.Optional(
5329
5594
  typebox_exports.Union(
@@ -5432,7 +5697,7 @@ var index_default = definePluginEntry({
5432
5697
  });
5433
5698
  api.registerTool({
5434
5699
  name: "render_stock_report",
5435
- 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",
5700
+ 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\u3002report\u53EF\u5305\u542Bevidence\uFF08path/label/value/source/as_of\uFF09\u4E0Edata_quality\uFF08flags/limitations\uFF09\uFF0Cbrief/full\u5747\u5C55\u793A\u8BC1\u636E\u548C\u9650\u5236\u3002",
5436
5701
  parameters: typebox_exports.Object({
5437
5702
  report: typebox_exports.Object({}, { additionalProperties: true, description: "\u7ED3\u6784\u5316\u80A1\u7968\u62A5\u544A JSON" }),
5438
5703
  template: typebox_exports.Optional(
@@ -5484,7 +5749,7 @@ var index_default = definePluginEntry({
5484
5749
  });
5485
5750
  api.registerTool({
5486
5751
  name: "build_watchlist_context",
5487
- description: "\u81EA\u9009\u80A1\u4E0A\u4E0B\u6587\u5305 \u2014 \u5BF9\u591A\u53EA\u80A1\u7968\u8F93\u51FA\u8BC4\u5206/\u8D8B\u52BF/\u5F02\u5E38/\u98CE\u9669/\u5EFA\u8BAE next_tools \u7684 agent \u53CB\u597D\u6458\u8981\u3002\u5BBF\u4E3B agent \u51B3\u5B9A\u5982\u4F55\u5199\u65E5\u62A5\u6216\u6DF1\u5165\u5206\u6790",
5752
+ description: "\u81EA\u9009\u80A1\u4E0A\u4E0B\u6587\u5305 \u2014 \u5BF9\u591A\u53EA\u80A1\u7968\u8F93\u51FA\u8BC4\u5206/\u8D8B\u52BF/\u5F02\u5E38/\u98CE\u9669/\u5EFA\u8BAE next_tools \u7684 agent \u53CB\u597D\u6458\u8981\u3002\u5BBF\u4E3B agent \u51B3\u5B9A\u5982\u4F55\u5199\u65E5\u62A5\u6216\u6DF1\u5165\u5206\u6790\u3002\u5F02\u52A8\u68C0\u67E5\u5931\u8D25\u65F6anomaly_status=unavailable\u3001anomaly_count=null\uFF0C\u4FDD\u7559anomaly_error/warnings\uFF1B\u6C47\u603B\u8BA1\u5165partial",
5488
5753
  parameters: typebox_exports.Object({
5489
5754
  symbols: typebox_exports.String({ description: "\u9017\u53F7\u5206\u9694\u7684\u80A1\u7968\u4EE3\u7801\u5217\u8868" }),
5490
5755
  include_market_review: typebox_exports.Optional(
@@ -5593,7 +5858,7 @@ var index_default = definePluginEntry({
5593
5858
  });
5594
5859
  api.registerTool({
5595
5860
  name: "evaluate_signals",
5596
- description: "\u8BC4\u4F30\u5230\u671F\u4FE1\u53F7\uFF1A\u62C9\u53D6\u8BB0\u5F55\u65E5\u4E4B\u540E\u7684\u65E5K\uFF0C\u5224\u5B9A target_hit/stop_hit/timeout \u5E76\u8BA1\u7B97\u6536\u76CA\uFF0C\u56DE\u5199\u5B58\u50A8\u3002\u8BB0\u5F55\u5EFA\u8BAE\u7528 record_signal\uFF0C\u80DC\u7387\u590D\u76D8\u7528 get_signal_summary\u3002\u5386\u53F2K\u7EBF\u672A\u8986\u76D6\u8BB0\u5F55\u65E5\u65F6skipped_no_data\u5E76\u4FDD\u6301\u672A\u7ED3\u7B97\uFF0C\u4E0D\u80FD\u7528\u8F83\u65B0\u884C\u60C5\u4EE3\u66FF",
5861
+ description: "\u8BC4\u4F30\u5230\u671F\u4FE1\u53F7\uFF1A\u62C9\u53D6\u8BB0\u5F55\u65E5\u4E4B\u540E\u7684\u65E5K\uFF0C\u5224\u5B9A target_hit/stop_hit/timeout \u5E76\u8BA1\u7B97\u6536\u76CA\uFF0C\u56DE\u5199\u5B58\u50A8\u3002\u8BB0\u5F55\u5EFA\u8BAE\u7528 record_signal\uFF0C\u80DC\u7387\u590D\u76D8\u7528 get_signal_summary\u3002\u5386\u53F2K\u7EBF\u672A\u8986\u76D6\u8BB0\u5F55\u65E5\u65F6skipped_no_data\u5E76\u4FDD\u6301\u672A\u7ED3\u7B97\uFF0C\u4E0D\u80FD\u7528\u8F83\u65B0\u884C\u60C5\u4EE3\u66FF\u3002\u539F\u59CB\u4FE1\u53F7\u4EF7\u4E0E\u590D\u6743K\u7EBF\u987B\u6709\u53EF\u6838\u5B9E\u7684adjustment_factor\uFF0C\u7F3A\u5931\u5219skipped_price_basis\u4FDD\u6301\u672A\u7ED3\u7B97\u3002CLI\u9884\u7B97300\u79D2\uFF0C\u622A\u6B62\u524D\u8FD4\u56DE\u5E76\u4FDD\u5B58\u5DF2\u5B8C\u6210\u7ED3\u679C\uFF1Bcomplete/deferred/warnings\u8BF4\u660E\u672A\u5904\u7406\u8BB0\u5F55\uFF0C\u4E0B\u6B21\u53EF\u91CD\u8BD5",
5597
5862
  parameters: typebox_exports.Object({
5598
5863
  symbol: typebox_exports.Optional(
5599
5864
  typebox_exports.String({ description: "\u80A1\u7968\u4EE3\u7801\uFF08\u53EF\u9009\uFF0C\u53EA\u8BC4\u4F30\u8BE5\u80A1\u7684\u4FE1\u53F7\uFF09" })
@@ -5608,7 +5873,7 @@ var index_default = definePluginEntry({
5608
5873
  });
5609
5874
  api.registerTool({
5610
5875
  name: "get_signal_summary",
5611
- description: "\u4FE1\u53F7\u80DC\u7387\u6C47\u603B\uFF08\u53EF\u6309 source/symbol/status \u8FC7\u6EE4\uFF09\uFF1A\u80DC\u7387\u3001\u5E73\u5747\u6536\u76CA\u3001\u7ED3\u679C\u5206\u5E03\u4E0E\u660E\u7EC6",
5876
+ description: "\u4FE1\u53F7\u80DC\u7387\u6C47\u603B\uFF08\u53EF\u6309 source/symbol/status \u8FC7\u6EE4\uFF09\uFF1A\u80DC\u7387\u3001\u5E73\u5747\u6536\u76CA\u3001\u7ED3\u679C\u5206\u5E03\u4E0E\u660E\u7EC6\u3002by_source\u9644avg_return_pct\u3001return_samples\u548Csample_warning\uFF1B\u4EC5\u89C2\u5BDF\u6027\u590D\u76D8\uFF0C\u6837\u672C\u5C11\u4E0D\u80FD\u8BA4\u5B9A\u7B56\u7565\u6709\u6548\u3002",
5612
5877
  parameters: typebox_exports.Object({
5613
5878
  source: typebox_exports.Optional(typebox_exports.String({ description: "\u6309\u4FE1\u53F7\u6765\u6E90\u8FC7\u6EE4\uFF08\u53EF\u9009\uFF09" })),
5614
5879
  symbol: typebox_exports.Optional(typebox_exports.String({ description: "\u6309\u80A1\u7968\u4EE3\u7801\u8FC7\u6EE4\uFF08\u53EF\u9009\uFF09" })),