返回目录
模型与 MCP 插件

dsh-QuantLib

vicfei/dsh-QuantLib

Derivatives pricing as DeepSeek Harness tools — BS76 with full Greeks, implied vol, CRR American binomials; zero-dependency core with built-in self-tests (parity, Greek identities, IV round-trip). Implements the core of QuantLib. Not affiliated.

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:vicfei/dsh-QuantLib

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-QuantLib — derivatives pricing as DeepSeek Harness tools

Black-Scholes prices, full Greeks, implied vol, American binomial trees — computed by a zero-dependency analytic core that ships its own proof: parity, Greek identities and IV round-trips must pass exactly before any price leaves the house. Assumptions ride on every payload. BS 定价、全套希腊字母、隐含波动率、美式二叉树——零依赖解析核心,自带证明: 平价关系/希腊恒等式/IV 往返必须精确通过,价格才能出门。假设随每份载荷披露。

DeepSeek Harness License: MIT QuantLib BSD

Implements the core of QuantLib — the standard open-source quant finance library — natively for DSH. Not affiliated. Family: dsh-TradingAgents · dsh-ai-hedge-fund · dsh-Vibe-Trading · dsh-OpenBB · dsh-CCXT · dsh-nautilus_trader · dsh-hummingbot · dsh-jesse · dsh-quantstats.

Why (QuantLib exists — what's the DSH-native angle?)

QuantLib (C++/SWIG) dsh-QuantLib
Runs where C++/Python labs DSH in-session — agents price instruments in the loop
Deps heavy SWIG build zero-dependency analytic core (stdlib math only)
Trust industry standard ships its own proof: --selftest runs parity/identity/round-trip checks that must pass exactly
Coverage everything v0: BS76 + Greeks + IV + CRR American; curves/bonds in M1

Quick start

git clone https://github.com/vicfei/dsh-QuantLib && cd dsh-quantlib
python3 scripts/pricing.py --selftest        # the proof: parity, Greeks, IV round-trip
python3 scripts/pricing.py --cmd option.european \
  --params '{"S":162.85,"K":165,"T":0.25,"r":0.04,"q":0,"sigma":0.6309,"type":"call"}'

Real-input smoke (2026-11-17): NVDA at its live price 162.85 with the live IV30 63.09% (cboe via the family's OpenBB bridge) prices the 165 call at 20.19, delta 0.559, gamma 0.0077 — assumptions disclosed on the payload. American BTC put at live spot 64344 / 45% vol: 7904 via 400-step CRR, and the self-test proves American ≥ European holds.

Status & roadmap

v0 analytic core smoke-tested. ROADMAP: M1 yield curves + bonds + QuantLib-Python adapter (--via quantlib for engine-grade coverage); M2 volatility surfaces.

License & disclaimer

MIT; concept inspired by BSD-licensed upstream — no upstream code used. Not investment advice.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。