863683348/dsh-plugin-finance-data ↗★ 5

dsh-plugin-finance-data

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 percentile comparison, risk metrics, and a data-quality checklist 适合本地财务建模和投资分析;需输入完整参数后再复核结果以避免误用。

패키지
dsh-plugin-finance-data
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
Cordis peer 범위
^4.0.1
버전
0.3.2
라이선스
MIT
최근 업데이트
2026. 9. 11.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:863683348/dsh-plugin-finance-data

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.

Compatibility

Tool schemas are validated against the @deepseek-ai/dsh-tools value-schema DSL at plugin load (checked against dsh-tools 0.1.0-rc.6 and 0.1.1-rc.2). Earlier releases used JSON-Schema required at the root of output.schema and closed nested objects without declared properties, which made the host abort the whole profile boot with unsupported JSON schema: schema.required is not supported by the value schema DSL and could reject the tool's own results. Current releases fix both; if an affected version left your DSH unable to start, remove the plugin from the profile (or upgrade) — no data is lost.

Install

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

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

Tool

actionpurpose
formatNumber/currency/percent formatting with thousands separators and Chinese 万/亿 units
returnSimple, log, and annualized (CAGR-style) returns
ratioPE, PB, ROE, ROA, gross/net margin, debt-to-equity
valuePresent value, future value, implied rate
riskMean, volatility, max drawdown, historical VaR(95), Sharpe from a return series
checklistData-quality checklist (source, as-of date, units, definitions)
planDCA / compound-interest projection — future value schedule, inflation-adjusted real value
portfolioPortfolio weights, drift vs targets, and rebalance buy/sell orders
trendMetric time series — mean, extremes, direction (slope), volatility
peerValue vs peer group — P10/P50/P90 and percentile rank

Config

All optional, on the composition row's config:

keydefaultmeaning
personaSectiontrueregister the finance prompt-guidance section
sectionOrder6prompt 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.