QuantLib 衍生品定价

QuantLib 衍生品定价:通过 SWIG 绑定调用 QuantLib 引擎,完成期权、互换、债券等金融衍生品的定价计算,支持美式期权有限差分法和篮子价差期权等多资产策略验证。 含 15 条反模式约束。

✓ 0 人报告成功·v0.1.0·

晶体简介

通过 SWIG 绑定调用 QuantLib 引擎,完成期权、互换、债券等金融衍生品的定价计算,支持美式期权有限差分法和篮子价差期权等多资产策略验证。。 本 skill 基于开源项目构建并集成 15 条 anti-pattern 约束。访问 doramagic.ai/r/quantlib-derivatives 查看中英双语完整文档和触发场景。适用于 Doramagic 生态(Claude Code / Cursor / openclaw / ChatGPT / Gemini 等)。

Blueprint Source

finance-bp-123

tangweigang-jpg/doramagic-skills6360a632 source files

Constraints

48total
33fatal
33 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

33 条不可违反的约束

FATALdomain_rulefinance-C-001

WHENWhen building SWIG bindings for QuantLib

ACTIONuse QuantLib version 1.42 or higher

CONSEQUENCESWIG interface compilation will fail with a hard error at ql.i:34 if QuantLib version is below 1.42, preventing any binding generation for the target language

FATALresource_boundaryfinance-C-004

WHENWhen running QuantLib-SWIG in JVM or .NET environments

ACTIONenable QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN in QuantLib C++ compilation

CONSEQUENCEAsync garbage collectors in JVM/.NET will cause spurious crashes or pure virtual function calls when the observer pattern is accessed during GC pauses

FATALarchitecture_guardrailfinance-C-009

WHENWhen exposing Python-specific wrappers in SWIG

ACTIONguard Python-only code with #if defined(SWIGPYTHON) preprocessor directives

CONSEQUENCEPython-specific code like PyObserver will cause compilation failures when building Java, C#, R, or Scala bindings without proper language guards

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-23·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。