开发者

Python quantlib examples? [closed]

开发者_开发问答 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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


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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜