Fast risks calculations in QuantLib
Project description
This package enables fast risks calculations on the QuantLib Python package. It provides the same interface as the standard QuantLib package, and in addition allows to calculate risks (sensitivities) using automatic differentiation via the XAD automatic differentiation tool.
Useful links:
Installation
pip install QuantLib-Risks
Usage Illustration
import QuantLib_Risks as ql
from xad.adj_1st import Tape
with Tape() as t:
rate = ql.Real(0.2)
tape.registerInput(rate)
# quantlib pricing code
...
npv = option.NPV()
tape.registerOutput(npv)
npv.derivative = 1.0
tape.computeAdjoints()
print(f"price = {npv}")
print(f"delta = {rate.derivative}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file quantlib_risks-1.33.3-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf85561a099f53c5a596bce39ae2f9215363e190c3f96668cbb11a34e1bd6380 |
|
MD5 | 7e617f9a55c9c2e33163c85beb542fee |
|
BLAKE2b-256 | bee126b21974dbe3af374a5ba941bbbd8d65df22e7c2f5aec03d109cbf5cb352 |
File details
Details for the file quantlib_risks-1.33.3-cp312-cp312-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp312-cp312-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 33.0 MB
- Tags: CPython 3.12, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227cbd76b09869d3b2213d7a8e1911891d4686b9842a030b123a06e36491a3c4 |
|
MD5 | 750db3a3d9f4548241ade31ffe95e209 |
|
BLAKE2b-256 | f6548c1ba35a602bde213e802b8756e3c4d912ce5f05f160dd05cda0d229e066 |
File details
Details for the file quantlib_risks-1.33.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 35.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb762e5ffc12e779f598ae8a5bc144209fba9b6aa11877c7e27366ebce523a7 |
|
MD5 | cfd424a90e65d62ac6a809290219509b |
|
BLAKE2b-256 | c80a853bd9b6c00762a54090e5c7f05f514e14c8f27a2d1da00f035395b810f1 |
File details
Details for the file quantlib_risks-1.33.3-cp312-cp312-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp312-cp312-macosx_12_0_x86_64.whl
- Upload date:
- Size: 27.1 MB
- Tags: CPython 3.12, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0c014417ad2ffd9ffa248f675017045f8f7b31fa7b0ebf16f485211cb14708 |
|
MD5 | 5f249cbeada50b6a2e750f2f6e6166ff |
|
BLAKE2b-256 | b376c78c75b5ed1296fd439dfbaada34e8c447e4984eb02133854d6837b64e23 |
File details
Details for the file quantlib_risks-1.33.3-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e8fc99dafdfa62cf67e30cf606174a314a590c82255242a8f0779cd968e0565 |
|
MD5 | bd3f87fa42bd2aa0b595e885068ebfe5 |
|
BLAKE2b-256 | 0e1bf66a507b6262c3fe3f9f860ad5915fe91c080c4e633744c9b6c6a1e838b2 |
File details
Details for the file quantlib_risks-1.33.3-cp311-cp311-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 33.0 MB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ac32c1ff505c4d10b0e6ec6c82223cb61e0be312069e4c6e002bf48a90852a |
|
MD5 | 74dff8c444c6a4cc8028ecaf699dd084 |
|
BLAKE2b-256 | 337bb93b0eb99eb350145965abd1ddeda19ce948df9cffdaa9f8c4980241ba7c |
File details
Details for the file quantlib_risks-1.33.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 35.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa32db3d630a2b49e27f9da6573f2ce0436ccb134fe80f803a737229c62c7517 |
|
MD5 | 08241d152ed0d655304a04b587aff763 |
|
BLAKE2b-256 | fa31365305075ef9721af21ce3c3e31e89602443650bc1621a3fd0c6b20a1926 |
File details
Details for the file quantlib_risks-1.33.3-cp311-cp311-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp311-cp311-macosx_12_0_x86_64.whl
- Upload date:
- Size: 27.1 MB
- Tags: CPython 3.11, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 375132e7a7025eb297a648693c7a6d5115a4474af636f5214d9d8891d43382c9 |
|
MD5 | 7c19f044bbbee0a754db685774330d6e |
|
BLAKE2b-256 | 0084e27593afa9dae5e3a67e16fcffd2a787957e09600f926dd0cbe81831a26a |
File details
Details for the file quantlib_risks-1.33.3-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f330c84f506dc1fd44128b2d325eb0bf3a23c885cf1d7be7bdac743b38f4d9f |
|
MD5 | 03bd9337c360b732566b6a11ab75bcad |
|
BLAKE2b-256 | a17530cae23c7642c8e64acc06f7d16fde9ff89c9892a3acb30db1c1ea6f69b5 |
File details
Details for the file quantlib_risks-1.33.3-cp310-cp310-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 33.0 MB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13dde388e049e33e7ef9d43bb6330e5b8d09eecfacffb8f40beeae8d65d94eff |
|
MD5 | 8f8f4185ac207d4b77034e26a8f13777 |
|
BLAKE2b-256 | 778a7c9d3dd07481b1c1ddbc0df7b15f28ac12c48c2dbdf337cdf5866b8dfc84 |
File details
Details for the file quantlib_risks-1.33.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 35.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e31444943fa68665120d44a56493baef773fd5b30ef10dc330ed4b8600b079 |
|
MD5 | 32b9eedc8100261be1f0cd4edde7688c |
|
BLAKE2b-256 | 99be4dff7a066a0627a93e9a24f77d9bc7d1e9873915dad0326584615766b9f9 |
File details
Details for the file quantlib_risks-1.33.3-cp310-cp310-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp310-cp310-macosx_12_0_x86_64.whl
- Upload date:
- Size: 27.1 MB
- Tags: CPython 3.10, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e8c6793729dd639eee8e97e235be6cffa1d9c9cd07a3c15a7dafa7effb697ca |
|
MD5 | 1eb2f15f1a50753a4439169ebd979099 |
|
BLAKE2b-256 | fae042b53b9fd1c30e4d39561d8fbc0133287e65b09fce7482e392f6810a6cd6 |
File details
Details for the file quantlib_risks-1.33.3-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6f5007a5748f78b6bb0ecb21186e5d47889b38cca80c5ab9b69ed3cd41be75 |
|
MD5 | cfa2573cd5df05a427b41d111a017661 |
|
BLAKE2b-256 | 7c7d4d5dafbd3257327ac472aa0a6a63a1f4ce96c7b8c26e6b4f74666804286f |
File details
Details for the file quantlib_risks-1.33.3-cp39-cp39-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp39-cp39-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 33.0 MB
- Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98db14309a50057c8267b2dd63b1ad25cd55b0f409c7812fb377423695f643c |
|
MD5 | 54ecee2617a28cc0f1921c2c92b03823 |
|
BLAKE2b-256 | 7d1c712a8cf370ed91234c650bb212552edf2a68980f940e905fb21d05878a09 |
File details
Details for the file quantlib_risks-1.33.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 35.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9381a793d756cec702d9ac0925f6e3e5935cf4533ec4bb166a2ff1d0fa175f3 |
|
MD5 | ef41f2df878ccc140ee7d14beaeeea7b |
|
BLAKE2b-256 | 8e485a2c7a82e1abe34335c7ea4d27db24902534d922de284a3d2dab4f4dd9c1 |
File details
Details for the file quantlib_risks-1.33.3-cp39-cp39-macosx_12_0_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp39-cp39-macosx_12_0_x86_64.whl
- Upload date:
- Size: 27.1 MB
- Tags: CPython 3.9, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80b5e55181fb2c4f12c0edf30baaaefe7ab8e021aa9c0380075b68c3948cf36c |
|
MD5 | f811045792eaab4573223ca54e71e2e2 |
|
BLAKE2b-256 | 0761717be1687148f15349c38ffeafd3c1c2f2ad97b85de4a7981422cfa1dace |
File details
Details for the file quantlib_risks-1.33.3-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fefd066a8a64f831734beca2e13ff1c335423416071d896eadfd70eb917c9b3 |
|
MD5 | 03a751ea464f8931de1f8afedcc5ce57 |
|
BLAKE2b-256 | b09bf0012c71ecc03ac342e74bf7d91ffce56767a6cd27cee613c030ee687b56 |
File details
Details for the file quantlib_risks-1.33.3-cp38-cp38-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp38-cp38-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 33.0 MB
- Tags: CPython 3.8, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41df198970220618e31592ba017a9831c9a54798fcdb62b9ffc27c9e7ca1750e |
|
MD5 | 38e1de9de9b22aea534a946fc6d2c964 |
|
BLAKE2b-256 | 58b3c6ec5f6c171004103571e80cdccbd394de548fa69d3c20b1f87085032b55 |
File details
Details for the file quantlib_risks-1.33.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: quantlib_risks-1.33.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 35.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83bd12df291d4d44cbfe7bf2e97b00e2f694279eb5caa87e1bc7e3f9bd8a5c2b |
|
MD5 | d57dcfd0dd8d1a37e06f4fa5bfa88441 |
|
BLAKE2b-256 | 43ad83c98e65b928a8b41bc8d507d6155e9679625ed36f32ca693d3a14bc603e |