Python Quantlib 示例?

发布于 2024-09-03 18:46:53 字数 54 浏览 3 评论 0原文

有谁知道 Python 有什么好的 Quantlib 示例吗?我似乎找不到任何地方......

Does anyone know of any good quantlib examples for Python? I cant seem to find any anywhere...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

执手闯天涯 2024-09-10 18:46:53

Ubuntu 软件包 quantlib-python:

/usr/share/doc/quantlib-python/examples/american-option.py
/usr/share/doc/quantlib-python/examples/basket-option.py
/usr/share/doc/quantlib-python/examples/bermudan-swaption.py.gz
/usr/share/doc/quantlib-python/examples/european-option.py
/usr/share/doc/quantlib-python/examples/swap.py.gz
/usr/share/doc/quantlib-python/examples/test/QuantLibTestSuite.py
/usr/share/doc/quantlib-python/examples/test/bonds.py.gz
/usr/share/doc/quantlib-python/examples/test/date.py
/usr/share/doc/quantlib-python/examples/test/instruments.py
/usr/share/doc/quantlib-python/examples/test/integrals.py
/usr/share/doc/quantlib-python/examples/test/marketelements.py
/usr/share/doc/quantlib-python/examples/test/ratehelpers.py
/usr/share/doc/quantlib-python/examples/test/solvers1d.py
/usr/share/doc/quantlib-python/examples/test/termstructures.py.gz

如果您没有使用 Ubuntu/Debian,可能有适合您操作系统的类似软件包,或者您也可以通过下载 quantlib-swig_0.9.9.orig.tar.gz

There are examples in the Ubuntu package quantlib-python:

/usr/share/doc/quantlib-python/examples/american-option.py
/usr/share/doc/quantlib-python/examples/basket-option.py
/usr/share/doc/quantlib-python/examples/bermudan-swaption.py.gz
/usr/share/doc/quantlib-python/examples/european-option.py
/usr/share/doc/quantlib-python/examples/swap.py.gz
/usr/share/doc/quantlib-python/examples/test/QuantLibTestSuite.py
/usr/share/doc/quantlib-python/examples/test/bonds.py.gz
/usr/share/doc/quantlib-python/examples/test/date.py
/usr/share/doc/quantlib-python/examples/test/instruments.py
/usr/share/doc/quantlib-python/examples/test/integrals.py
/usr/share/doc/quantlib-python/examples/test/marketelements.py
/usr/share/doc/quantlib-python/examples/test/ratehelpers.py
/usr/share/doc/quantlib-python/examples/test/solvers1d.py
/usr/share/doc/quantlib-python/examples/test/termstructures.py.gz

If you are not using Ubuntu/Debian, there might be a similar package for your OS, or you can also get these files by downloading quantlib-swig_0.9.9.orig.tar.gz.

葵雨 2024-09-10 18:46:53

它们位于 QuantLib-SWIG 发行版中(您可能已经从 QuantLib 站点获得了该发行版。)解压 tarball(或 zip 存档)后,它们位于 Python\examples 文件夹中。

They're in the QuantLib-SWIG distribution (you probably got that from the QuantLib site already.) Once you unpack the tarball (or the zip archive) they're in the Python\examples folder.

り繁华旳梦境 2024-09-10 18:46:53

到目前为止,我发现的最好的(唯一的)QL/Python 示例代码是由 Tawanda Gwena 在 https://sites.google.com/site/tgwena/engineering-docs/engineering-permissions-list

The best (only ...) QL/Python example codes I have found so far are those written by Tawanda Gwena at https://sites.google.com/site/tgwena/engineering-docs/engineering-permissions-list

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文