@v587d/capital-generation 2.31.3 → 2.31.5
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/CHANGELOG.md +74 -0
- package/README.md +46 -8
- package/automation/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/config/package.json +1 -1
- package/lib/analysis/registry.js +6 -1
- package/lib/collector-runtime.js +8 -0
- package/lib/data-collector/catalog-taxonomy.js +11 -0
- package/lib/sources/eastmoney-http.js +274 -0
- package/lib/sources/sec-http.d.ts +9 -0
- package/lib/sources/sec-http.js +643 -0
- package/lib/sources/us-official-http.d.ts +4 -0
- package/lib/sources/us-official-http.js +654 -0
- package/lib/time/tools.js +6 -0
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +1 -1
- package/plugin-page/README.en.md +7 -0
- package/plugin-page/README.zh.md +7 -0
- package/preset/capital-generation/skills/capital-analysis-evidence/SKILL.md +47 -37
- package/preset/capital-generation/skills/capital-senior-analysis/SKILL.md +4 -2
- package/python/analysis/modules/comps_valuation/LICENSE +21 -0
- package/python/analysis/modules/comps_valuation/module.json +61 -0
- package/python/analysis/modules/comps_valuation/module.py +360 -0
- package/python/analysis/modules/earnings_bridge/LICENSE +21 -0
- package/python/analysis/modules/earnings_bridge/module.json +58 -0
- package/python/analysis/modules/earnings_bridge/module.py +452 -0
- package/python/analysis/modules/kline_quality/LICENSE +21 -0
- package/python/analysis/modules/kline_quality/module.json +61 -0
- package/python/analysis/modules/kline_quality/module.py +538 -0
- package/python/analysis/modules/portfolio_stress/LICENSE +21 -0
- package/python/analysis/modules/portfolio_stress/module.json +89 -0
- package/python/analysis/modules/portfolio_stress/module.py +537 -0
- package/python/analysis/modules/simple_backtest/LICENSE +21 -0
- package/python/analysis/modules/simple_backtest/module.json +66 -0
- package/python/analysis/modules/simple_backtest/module.py +648 -0
- package/python/analysis/modules/statement_integrity/LICENSE +21 -0
- package/python/analysis/modules/statement_integrity/module.json +62 -0
- package/python/analysis/modules/statement_integrity/module.py +621 -0
- package/python/analysis/modules/technical_indicators/LICENSE +21 -0
- package/python/analysis/modules/technical_indicators/module.json +170 -0
- package/python/analysis/modules/technical_indicators/module.py +854 -0
- package/python/analysis/modules/valuation_sensitivity/LICENSE +21 -0
- package/python/analysis/modules/valuation_sensitivity/module.json +73 -0
- package/python/analysis/modules/valuation_sensitivity/module.py +589 -0
- package/watchlist/package.json +1 -1
package/lib/time/tools.js
CHANGED
|
@@ -44,6 +44,12 @@ const DATA_TIME_CONTRACTS = {
|
|
|
44
44
|
eastmoney_customs_trade: { kind: 'date_range', fields: ['start_date', 'end_date'] },
|
|
45
45
|
eastmoney_retail_sales: { kind: 'date_range', fields: ['start_date', 'end_date'] },
|
|
46
46
|
eastmoney_deposit_reserve: { kind: 'date_range', fields: ['start_date', 'end_date'], warning: '存准率是**调整事件表**:区间里没有调整就是真实空结果,不是取数失败,不要重试' },
|
|
47
|
+
// US official data: business days in US/Eastern, not Asia/Shanghai.
|
|
48
|
+
us_treasury_yield_curve: { kind: 'date_range', fields: ['start_date', 'end_date'], maxDays: 1830, warning: '日期是**美东业务日**(节假日没有行),不是北京时间;收益率是百分数原值' },
|
|
49
|
+
nyfed_reference_rates: { kind: 'date_range', fields: ['start_date', 'end_date'], maxDays: 1830, warning: 'effective_date 是**美东业务日**(周末与假日没有行);利率是百分数原值' },
|
|
50
|
+
finra_short_volume: { kind: 'date', fields: ['trade_date'], maxDays: 366, warning: '美东业务日:周末/假日/尚未发布日没有文件;省略 trade_date 会自动取最近已发布日' },
|
|
51
|
+
sec_daily_filings: { kind: 'date', fields: ['filing_date'], maxDays: 366, warning: '美东申报日:周末与假日没有日索引文件' },
|
|
52
|
+
sec_fulltext_search: { kind: 'date_range', fields: ['start_date', 'end_date'], maxDays: 3660, warning: '美东申报日区间;两个参数必须成对给' },
|
|
47
53
|
eastmoney_mutual_flow: { kind: 'date_range', fields: ['start_date', 'end_date'] },
|
|
48
54
|
eastmoney_dividend_plan: { kind: 'date_range', fields: ['start_date', 'end_date'], warning: '区间过滤的是**除权除息日**,不是报告期' },
|
|
49
55
|
eastmoney_margin_trading: { kind: 'date_range', fields: ['start_date', 'end_date'], warning: '两融披露沪市比深市快一个交易日:跨市场同日比较前先对齐到共同日期' },
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Known limit: DNS resolves per request but the IP is not pinned to the connection,
|
|
4
4
|
* so a rebinding window remains (same trade-off as dsh-search-first).
|
|
5
5
|
*/
|
|
6
|
-
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.31.
|
|
6
|
+
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.31.5";
|
|
7
7
|
export declare const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
|
|
8
8
|
export type LocalFetchErrorCode = 'ABORTED' | 'TIMEOUT' | 'INVALID_URL' | 'BLOCKED_URL' | 'DNS' | 'REDIRECT' | 'HTTP' | 'TOO_LARGE' | 'UNSUPPORTED_CONTENT_TYPE';
|
|
9
9
|
export declare class LocalFetchError extends Error {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* so a rebinding window remains (same trade-off as dsh-search-first).
|
|
5
5
|
*/
|
|
6
6
|
import { htmlToMarkdown, stripInvisibleText } from './html-markdown.js';
|
|
7
|
-
export const LOCAL_FETCH_CLIENT_VERSION = '2.31.
|
|
7
|
+
export const LOCAL_FETCH_CLIENT_VERSION = '2.31.5';
|
|
8
8
|
export const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
|
|
9
9
|
export class LocalFetchError extends Error {
|
|
10
10
|
code;
|
|
@@ -35,7 +35,7 @@ export interface WindCallResult {
|
|
|
35
35
|
code?: WindErrorCode;
|
|
36
36
|
}
|
|
37
37
|
/** Must match `package.json` version; a test pins the two together. */
|
|
38
|
-
export declare const WIND_CLIENT_VERSION = "2.31.
|
|
38
|
+
export declare const WIND_CLIENT_VERSION = "2.31.5";
|
|
39
39
|
export interface WindClient {
|
|
40
40
|
callTool(toolName: string, args: Record<string, unknown>, signal?: AbortSignal): Promise<WindCallResult>;
|
|
41
41
|
}
|
|
@@ -19,7 +19,7 @@ export const WIND_SERVER_ENDPOINTS = {
|
|
|
19
19
|
analytics_data: 'https://mcp.wind.com.cn/vserver_analytics_data/mcp/',
|
|
20
20
|
};
|
|
21
21
|
/** Must match `package.json` version; a test pins the two together. */
|
|
22
|
-
export const WIND_CLIENT_VERSION = '2.31.
|
|
22
|
+
export const WIND_CLIENT_VERSION = '2.31.5';
|
|
23
23
|
function errorText(error) {
|
|
24
24
|
return error instanceof Error ? error.message : String(error);
|
|
25
25
|
}
|
package/package.json
CHANGED
package/plugin-page/README.en.md
CHANGED
|
@@ -21,6 +21,12 @@ See [README quick start](https://github.com/v587d/capital-generation#快速上
|
|
|
21
21
|
|
|
22
22
|
Auto never fetches data or draws charts directly; every number needs a source and an as-of time. See [README modes](https://github.com/v587d/capital-generation#快速上手) for the full table.
|
|
23
23
|
|
|
24
|
+
## Senior analyst
|
|
25
|
+
|
|
26
|
+
Questions that need judgement (financial quality, returns and risk, event impact, trends, valuation, scenarios) are handed to the **senior analyst** inside Auto: it runs fixed analysis modules and writes the conclusion with numbers that trace back to the data, plus counter-arguments and invalidation conditions. It does not fetch data, draw charts or write the final answer, and gives no buy/sell, position-size or target-price advice.
|
|
27
|
+
|
|
28
|
+
See [README senior analyst](https://github.com/v587d/capital-generation#senior-analyst) for the modules, example questions and limits.
|
|
29
|
+
|
|
24
30
|
## CapGen research automation
|
|
25
31
|
|
|
26
32
|
Built-in task templates cover news, quotes, reviews, research, portfolios and monitoring; they start a new session on schedule and can also be run manually. Tasks, the board, the run heatmap and notifications live on one page. Board TODOs are checked by the default-enabled TODO Verifier after the A/H close; when a condition triggers or needs your confirmation, it lands in task notifications.
|
|
@@ -38,6 +44,7 @@ See [README CapGen automation](https://github.com/v587d/capital-generation#capge
|
|
|
38
44
|
- [Full README](https://github.com/v587d/capital-generation#readme)
|
|
39
45
|
- [Data collection capabilities](https://github.com/v587d/capital-generation/blob/main/docs/data-collector-capabilities.md)
|
|
40
46
|
- [Web retrieval capabilities](https://github.com/v587d/capital-generation/blob/main/docs/web-retriever-capabilities.md)
|
|
47
|
+
- [Senior analyst](https://github.com/v587d/capital-generation#senior-analyst)
|
|
41
48
|
- [Research automation](https://github.com/v587d/capital-generation#capgen-automation)
|
|
42
49
|
- [FAQ](https://github.com/v587d/capital-generation#常见问题)
|
|
43
50
|
- [Changelog](https://github.com/v587d/capital-generation/blob/main/CHANGELOG.md)
|
package/plugin-page/README.zh.md
CHANGED
|
@@ -20,6 +20,12 @@ Capital Generation 是运行在 [DeepSeek Harness](https://github.com/deepseek-a
|
|
|
20
20
|
|
|
21
21
|
自动模式不直接取数,也不直接画图;每个数字都要有来源与截止时间。完整说明见 [README 三种模式](https://github.com/v587d/capital-generation#快速上手)。
|
|
22
22
|
|
|
23
|
+
## 高级分析师
|
|
24
|
+
|
|
25
|
+
需要判断的问题(财务质量、收益与风险、事件影响、趋势、估值、情景)会在自动模式里交给**高级分析师**:它在固定分析模块里算指标、写结论,结论中的数字要能对回数据,并附正反论据与失效条件。它不取数、不出图、不写最终答复,也不给买卖、仓位或目标价建议。
|
|
26
|
+
|
|
27
|
+
内置模块、能回答的问题与边界见 [README 高级分析师](https://github.com/v587d/capital-generation#senior-analyst)。
|
|
28
|
+
|
|
23
29
|
## CapGen 投研自动化
|
|
24
30
|
|
|
25
31
|
内置多套任务模板,覆盖资讯、行情、复盘、研究、组合与监控;到点自动新建会话执行,也能手动运行。任务、看板、运行热力图与通知在同一页。看板 TODO 由默认启用的「TODO 核验」在收盘后主动核验,触发或需要你确认时写入任务通知。
|
|
@@ -37,6 +43,7 @@ Capital Generation 是运行在 [DeepSeek Harness](https://github.com/deepseek-a
|
|
|
37
43
|
- [完整 README](https://github.com/v587d/capital-generation#readme)
|
|
38
44
|
- [数据收集能力表](https://github.com/v587d/capital-generation/blob/main/docs/data-collector-capabilities.md)
|
|
39
45
|
- [网页检索能力表](https://github.com/v587d/capital-generation/blob/main/docs/web-retriever-capabilities.md)
|
|
46
|
+
- [高级分析师](https://github.com/v587d/capital-generation#senior-analyst)
|
|
40
47
|
- [投研自动化](https://github.com/v587d/capital-generation#capgen-automation)
|
|
41
48
|
- [常见问题](https://github.com/v587d/capital-generation#常见问题)
|
|
42
49
|
- [更新日志](https://github.com/v587d/capital-generation/blob/main/CHANGELOG.md)
|
|
@@ -75,43 +75,53 @@ description: Use when freezing or reviewing the inputs of a Capital analysis —
|
|
|
75
75
|
- `blocking: false` 表示可以先出降级结论;`true` 表示没有它就只能 blocked。
|
|
76
76
|
- 不要在请求里指定数据源或给服务商键名——那是主 Agent 和取数侧的事。
|
|
77
77
|
|
|
78
|
-
## 6.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
`compare_previous
|
|
87
|
-
`
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
`
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
- `
|
|
95
|
-
`
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
- `
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
78
|
+
## 6. 模块输入契约
|
|
79
|
+
|
|
80
|
+
先 `list_analysis_modules` → `describe_analysis_module` 看 `input_schema`,再按形状取用;`params` 自创字段会被拒。
|
|
81
|
+
|
|
82
|
+
**三表横截面**
|
|
83
|
+
|
|
84
|
+
- `financial_quality`:三份 Dataset(利润表 `operating_income`+`net_profit`;资产负债表 `assets_total`+
|
|
85
|
+
`holder_equity_total`;现金流量表 `act_cash_flow_net`),按 `period_end_ms`/`period` 对齐;`params`
|
|
86
|
+
`period`、`compare_previous`、`{role}_dataset_id`。A 股 `period` 列实测是常量 `annual`,选期用日期或
|
|
87
|
+
`fiscal_year`。缺整张利润表 → `blocked`,缺列/分母无意义 → `partial`。
|
|
88
|
+
- `statement_integrity`:同样三份表;校验资产负债恒等式、现金流对账、留存收益滚动;`params` `period`、
|
|
89
|
+
`tolerance_ratio`(默认 0.1%)、`tolerance_abs`。差异是发现不是缺口;缺 `retained_earnings` /
|
|
90
|
+
`dividends_paid` 时只报缺口,不估算。
|
|
91
|
+
|
|
92
|
+
**利润表两期**
|
|
93
|
+
|
|
94
|
+
- `earnings_bridge`:一份利润表序列(≥2 期,`operating_income`+`net_profit`;税前分解另需
|
|
95
|
+
`profit_total`+`income_tax_expense`);`params` `period`、`income_dataset_id`。收入/净利率与税前/税率
|
|
96
|
+
两条恒等式的效应必须加回净利润差额;只有一期 → `blocked`。
|
|
97
|
+
|
|
98
|
+
**价格序列**
|
|
99
|
+
|
|
100
|
+
- `returns_risk`:一份时间列+正价格列,可选基准 Dataset;`params` `risk_free_rate`、`confidence`、
|
|
101
|
+
`periods_per_year`、`timezone`。有效观测 <3 → `blocked`,<30 只作方向性参考。
|
|
102
|
+
- `kline_quality`:一份 OHLC 日 K(open/high/low/close 必需,volume 可选);`params` `jump_threshold`
|
|
103
|
+
(默认 0.5,只标 suspect 不删)。输出清洗序列 + 逐行拒绝原因;全被拒 → `blocked`。
|
|
104
|
+
- `technical_indicators`:同一价格序列 + 指标窗口(`sma_windows`/`ema_windows`/`rsi_period`/`macd_*`/
|
|
105
|
+
`boll_*`/`atr_period`,至少给一组);窗口不足的指标写缺口。指标是复盘条件,不是方向预测。
|
|
106
|
+
- `simple_backtest`:价格序列 + `rule`(`sma_cross`/`price_above_sma`)+ `fast_window`(`sma_cross` 另给
|
|
107
|
+
`slow_window`)+ `fee_rate`;信号 t 根收盘、t+1 根收盘执行;样本内、参数由你给,不做寻优,结果不许
|
|
108
|
+
写成策略推荐。
|
|
109
|
+
|
|
110
|
+
**横截面 / 组合**
|
|
111
|
+
|
|
112
|
+
- `comps_valuation`:peers 横截面(一行一家,`market_cap`+`net_profit`,可选 `equity`/`revenue`/
|
|
113
|
+
`enterprise_value`/`ebitda`);可选 `subject_dataset_id` 只比一只标的;多份同型表必须用
|
|
114
|
+
`peers_dataset_id` 指名。中位数只描述样本,不是目标价。
|
|
115
|
+
- `portfolio_stress`:`positions[]`(dataset_id + weight,权重和 = 1)+ `windows[]`(name/start/end 历史
|
|
116
|
+
区间);每个持仓一份价格序列。窗口越界写缺口、不借日期;历史回放不是假设情景。
|
|
117
|
+
|
|
118
|
+
**参数型(不读 Dataset)**
|
|
119
|
+
|
|
120
|
+
- `scenario_sensitivity`:显式恒等式(`product`/`sum`)+ 1–4 因子基准 + 网格/情景;因子基准必须来自已核过
|
|
121
|
+
的 `metrics` 或 profile,不凭记忆填;输出是算术取值,不是概率或预测。
|
|
122
|
+
- `valuation_sensitivity`:`projections`(显式 FCF 序列)+ `wacc` 或完整 CAPM 参数 + `terminal_growth`、
|
|
123
|
+
`net_debt`、`shares_outstanding`;输出模型值与 WACC×g 格点,**不是目标价**;`wacc ≤ g` 的格点写 null+缺口。
|
|
124
|
+
- `hello`:只做环境自检,不产出结论,不要用它回答研究问题。
|
|
115
125
|
|
|
116
126
|
## 7. 证据不足也要给结论
|
|
117
127
|
|
|
@@ -53,8 +53,10 @@ description: Use when acting as the senior analyst in Capital mode — turning a
|
|
|
53
53
|
## 5. 模块纪律
|
|
54
54
|
|
|
55
55
|
- 只选 `module_id` + `params`;不改模块代码、不提交脚本、不要求运行时读任意文件。
|
|
56
|
-
-
|
|
57
|
-
|
|
56
|
+
- **按输入形状挑模块**:三表 → `financial_quality` / `statement_integrity`;两期利润表 →
|
|
57
|
+
`earnings_bridge`;日线价格 → `returns_risk` / `kline_quality` / `technical_indicators` /
|
|
58
|
+
`simple_backtest`;peers 横截面 → `comps_valuation`;多持仓+窗口 → `portfolio_stress`;参数型(不读
|
|
59
|
+
Dataset)→ `scenario_sensitivity` / `valuation_sensitivity`;`hello` 只做环境自检。
|
|
58
60
|
先 `describe_analysis_module` 看 `input_schema`,不要凭记忆填参数。
|
|
59
61
|
- `params` 不合契约会在启动 Python **之前**被拒(`analysis_input_invalid`):按 `describe_analysis_module`
|
|
60
62
|
的 `input_schema` 填,别自创字段。
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 v587d
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "comps_valuation",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"entrypoint": "module.py",
|
|
5
|
+
"runtime": "python",
|
|
6
|
+
"description": "可比倍数横截面:按同口径 peers 表算 P/E、P/B、P/S、EV/EBITDA 的截面中位数与计数,可选一只标的做相对溢价/折价;不评级、不给目标价",
|
|
7
|
+
"roles": ["senior_analyst"],
|
|
8
|
+
"capabilities": ["dataset.read"],
|
|
9
|
+
"required_fields": [],
|
|
10
|
+
"input_schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"peers_dataset_id": { "type": "string", "maxLength": 128, "description": "可比公司横截面 Dataset(一行一家);只有一份像 peers 表时可省略" },
|
|
14
|
+
"subject_dataset_id": { "type": "string", "maxLength": 128, "description": "可选:被比较标的的横截面 Dataset(一行);不给就只报 peers 中位数" },
|
|
15
|
+
"ticker_column": { "type": "string", "maxLength": 64, "description": "公司标识列名;省略按 ticker / thscode / code 识别,找不到就用行号" },
|
|
16
|
+
"period_note": { "type": "string", "maxLength": 64, "description": "口径备注(如 2024-TTM / 2024-12-31);只写入结果,不参与计算" }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"output_schema": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"status": { "type": "string", "enum": ["completed", "partial", "blocked", "failed"] },
|
|
24
|
+
"summary": { "type": "string" },
|
|
25
|
+
"metrics": { "type": "object" },
|
|
26
|
+
"claims": { "type": "array" },
|
|
27
|
+
"assumptions": { "type": "array" },
|
|
28
|
+
"methodology_log": { "type": "array" },
|
|
29
|
+
"sensitivity": { "type": "object" },
|
|
30
|
+
"limitations": { "type": "array" },
|
|
31
|
+
"data_gaps": { "type": "array" },
|
|
32
|
+
"outputs": { "type": "array" }
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"status", "summary", "metrics", "claims", "assumptions", "methodology_log",
|
|
36
|
+
"sensitivity", "limitations", "data_gaps", "outputs"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"assumptions": [
|
|
41
|
+
"一行是一家公司的一个同口径截面:市值、净利润、净资产、营收、企业价值与 EBITDA 必须同为同一报告期、同一币种;模块不检查跨期或跨币种混用",
|
|
42
|
+
"P/E = market_cap / net_profit,只对净利润 > 0 的公司计算;亏损公司的 P/E 无经济含义,剔除并计数,不用负值参与中位数",
|
|
43
|
+
"P/B = market_cap / equity、P/S = market_cap / revenue 只对分母 > 0 的公司计算",
|
|
44
|
+
"EV/EBITDA 使用数据集自带的 enterprise_value 与 ebitda 两列;缺任一一列就不算,不用 market_cap + net_debt 反推",
|
|
45
|
+
"截面统计只报中位数与有效样本数:样本 < 3 时中位数没有横截面意义,写进 limitations;不把均值或最高/最低值当估值结论",
|
|
46
|
+
"可选标的的相对位置只是 same-period 截面上的溢价/折价,不构成目标价、评级或买卖建议"
|
|
47
|
+
],
|
|
48
|
+
"applicability": [
|
|
49
|
+
"peers 表至少 2 列:market_cap 与 net_profit;equity / revenue / enterprise_value / ebitda 为可选列,缺列只影响对应倍数",
|
|
50
|
+
"同一行的所有金额列必须同币种、同报告期;一行一家公司,ticker 重复视为输入错误",
|
|
51
|
+
"适用成熟上市公司之间的相对估值;亏损、金融企业、重组或跨行业混用会显著削弱可比性,需调用方自行披露",
|
|
52
|
+
"不适用于绝对估值、DCF、交易可比(并购溢价)或需要调整报表口径的场景"
|
|
53
|
+
],
|
|
54
|
+
"limits": {
|
|
55
|
+
"timeout_ms": 30000,
|
|
56
|
+
"max_input_rows": 200000,
|
|
57
|
+
"max_output_bytes": 1048576,
|
|
58
|
+
"max_log_bytes": 65536
|
|
59
|
+
},
|
|
60
|
+
"provenance": { "source_type": "original", "license": "MIT" }
|
|
61
|
+
}
|