Install
openclaw skills install @caoling7878-arch/yanmu-dcf-model股票研究专家研木的Skill — DCF估值建模,含5年FCF预测、终值折现、敏感性分析热力图
openclaw skills install @caoling7878-arch/yanmu-dcf-model运行依赖:
pip3 install matplotlib numpy(缺库时脚本会提示安装)
基于采集的财务数据,构建完整的DCF估值模型:
同金融数据采集,支持A股/港股/美股的实时行情覆盖:
python3 {baseDir}/scripts/dcf_model.py \
--ticker <股票代码> \
--market <a-share|hk|us> \
--wacc <WACC值,默认自动计算> \
--growth <永续增长率,默认2.5%> \
--output-dir <图表输出目录> \
--format <text|json>
脚本内置 _fetch_live_price() 函数,与金融数据采集共用同一套行情接口。
{
"company": "公司名",
"ticker": "代码",
"wacc": 7.93,
"terminal_growth": 0.025,
"projections": [
{"year": "2026E", "revenue": 7956, "revenue_growth": 10.5, "nopat": 1750, "fcf": 1275, ...}
],
"dcf_result": {
"total_pv_fcfs": 6344,
"pv_terminal": 25116,
"enterprise_value": 31460,
"terminal_value_pct": 79.8,
"implied_price": 356.33
}
}
<ticker>_sensitivity_heatmap.png| 参数 | 说明 |
|---|---|
| 无风险利率 (Rf) | 2.50%(10年期中国国债) |
| Beta | 行业特征系数(从内置数据库获取) |
| 市场风险溢价 (MRP) | 6.00%(中国市场标准假设) |
| WACC | CAPM模型自动计算 |
| 预测期 | 5年 (2026-2030) |
| 永续增长率 (g) | 2.5%(可调) |
| 营收增速 | 基于分析师一致预期和历史增速 |
| FCF利润率 | 基于历史趋势逐步调整 |