863683348/dsh-plugin-finance-data

插件Plugin 原生Native ⭐ 3 MIT 工具Tools

面向DeepSeek Harness代理的金融数据工具包:数字/货币格式化(包括中文万/亿单位)、回报率与复合年增长率计算、估值与盈利能力比率、现值/终值、风险指标,以及数据质量检查清单

项目介绍Project Overview

dsh-plugin-finance-data 是面向 DeepSeek Harness 代理的金融数据工具包,覆盖数字格式化、收益率计算、财务比率、时间价值、风险指标、投资计划以及组合再平衡等场景。模型负责解释,插件负责算术。在 DSH 中通过 dsh plugin add 安装并重启后即可注册 finance_data 工具。核心采用纯逻辑库与 Cordis 接线层分离的零副作用设计。注意:该工具仅执行既定算术,不进行行情抓取或投资建议。

dsh-plugin-finance-data is a finance data toolkit for DeepSeek Harness agents, covering number formatting, return math, financial ratios, time value of money, risk metrics, planning, and portfolio rebalancing. The model explains; the plugin handles arithmetic. Install via dsh plugin add and restart to register the finance_data tool host-wide. It separates pure logic from Cordis wiring, is side-effect free, and ships with isolated unit tests. Note: the tool only runs predefined calculations and performs no market data fetching or investment advice.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add dsh-plugin-finance-data

863683348/dsh-plugin-finance-data 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-finance-data

A finance data toolkit for DeepSeek Harness agents: guaranteed-correct number formatting, return math, ratios, time value, and risk metrics. The model explains; the plugin does the arithmetic.

Install

dsh plugin --profile <profile> add dsh-plugin-finance-data

Restart DSH. The finance_data tool is registered host-wide.

Tool

action purpose
format Number/currency/percent formatting with thousands separators and Chinese 万/亿 units
return Simple, log, and annualized (CAGR-style) returns
ratio PE, PB, ROE, ROA, gross/net margin, debt-to-equity
value Present value, future value, implied rate
risk Mean, volatility, max drawdown, historical VaR(95), Sharpe from a return series
checklist Data-quality checklist (source, as-of date, units, definitions)
plan DCA / compound-interest projection — future value schedule, inflation-adjusted real value
portfolio Portfolio weights, drift vs targets, and rebalance buy/sell orders

Config

All optional, on the composition row's config:

key default meaning
personaSection true register the finance prompt-guidance section
sectionOrder 6 prompt section order (persona is 0, ascending)

Design

Pure logic (lib/finance.js) has zero DSH/Cordis imports and is unit-tested in isolation; lib/index.js is the thin Cordis plugin wiring the tool and the prompt section. No filesystem access — deterministic and side-effect free.

License

MIT

Roadmap

See ROADMAP.md — next five versions (v0.2.0 – v0.6.0): planning & portfolio, trends & peer comparison, cash-flow & sensitivity, bonds & FX/inflation, backtest & report export.

上一个 Prev dsh-anchored-standard-plus 下一个 Next dsh-setting-restart