Python quantlib示例?

2024-09-28 01:31:54 发布

您现在位置:Python中文网/ 问答频道 /正文

有人知道Python的任何好的quantlib示例吗?我好像找不到任何地方。。。


Tags: 示例地方quantlib
3条回答

它们在QuantLib SWIG发行版中(您可能已经从QuantLib站点获得了它)。一旦您解压缩tarball(或zip存档),它们就在Python\examples文件夹中。

Ubuntu packagequantlib-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来获取这些文件。

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

相关问题 更多 >

    热门问题