dsh-plugin-finance-data
v0.3.2
Published
Finance data toolkit for DeepSeek Harness agents: number/currency formatting (incl. Chinese wan/yi units), return & CAGR math, valuation and profitability ratios, PV/FV, DCA/compound projections, portfolio rebalancing, metric trend analysis, peer percenti
Maintainers
Readme
dsh-plugin-finance-data
面向 DeepSeek Harness agent 的金融数据工具包:数字格式化、收益计算、估值与盈利比率、时间价值、风险指标,全部确定性计算。模型负责解读,插件负责算术。
安装
dsh plugin --profile <profile> add dsh-plugin-finance-data重启 DSH 后,finance_data 工具全局注册。
工具
| 动作 | 用途 |
| --- | --- |
| format | 数字/货币/百分比格式化,千分位,中文万/亿单位 |
| return | 简单/对数/年化收益(CAGR 风格) |
| ratio | PE、PB、ROE、ROA、毛利率、净利率、产权比率 |
| value | 现值、终值、隐含收益率 |
| risk | 收益率序列的均值、波动率、最大回撤、历史 VaR(95)、夏普比率 |
| checklist | 数据质量检查清单(来源、时点、单位、口径) |
| plan | 定投/复利模拟(终值时间表、通胀调整实际价值) |
| portfolio | 组合权重、漂移与再平衡指令(买/卖金额)
配置
均为可选项,写在组合行的 config 里:
| 键 | 默认值 | 含义 |
| --- | --- | --- |
| personaSection | true | 是否注册金融提示词段 |
| sectionOrder | 6 | 提示词段顺序(persona 为 0,升序) |
设计
纯逻辑(lib/finance.js)零 DSH/Cordis 依赖、可独立单测;lib/index.js 是薄 Cordis 壳。无文件系统访问,全部确定性、无副作用。
License
MIT
