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}")
Release files for QuantLib-Risks 1.33.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 527.6 MB
Release files / quantlib_risks-1.33.3-cp312-cp312-win_amd64.whl
| Download URL | quantlib_risks-1.33.3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 15.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cf85561a099f53c5a596bce39ae2f9215363e190c3f96668cbb11a34e1bd6380
|
|
BLAKE2b-256 checksum How to use checksums |
bee126b21974dbe3af374a5ba941bbbd8d65df22e7c2f5aec03d109cbf5cb352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp312-cp312-musllinux_1_1_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp312-cp312-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 33.0 MB |
| Tags | CPython 3.12 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
227cbd76b09869d3b2213d7a8e1911891d4686b9842a030b123a06e36491a3c4
|
|
BLAKE2b-256 checksum How to use checksums |
f6548c1ba35a602bde213e802b8756e3c4d912ce5f05f160dd05cda0d229e066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 35.5 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
abb762e5ffc12e779f598ae8a5bc144209fba9b6aa11877c7e27366ebce523a7
|
|
BLAKE2b-256 checksum How to use checksums |
c80a853bd9b6c00762a54090e5c7f05f514e14c8f27a2d1da00f035395b810f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp312-cp312-macosx_12_0_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp312-cp312-macosx_12_0_x86_64.whl |
|---|---|
| Size | 27.1 MB |
| Tags | CPython 3.12 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
1b0c014417ad2ffd9ffa248f675017045f8f7b31fa7b0ebf16f485211cb14708
|
|
BLAKE2b-256 checksum How to use checksums |
b376c78c75b5ed1296fd439dfbaada34e8c447e4984eb02133854d6837b64e23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp311-cp311-win_amd64.whl
| Download URL | quantlib_risks-1.33.3-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 15.4 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5e8fc99dafdfa62cf67e30cf606174a314a590c82255242a8f0779cd968e0565
|
|
BLAKE2b-256 checksum How to use checksums |
0e1bf66a507b6262c3fe3f9f860ad5915fe91c080c4e633744c9b6c6a1e838b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp311-cp311-musllinux_1_1_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp311-cp311-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 33.0 MB |
| Tags | CPython 3.11 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
18ac32c1ff505c4d10b0e6ec6c82223cb61e0be312069e4c6e002bf48a90852a
|
|
BLAKE2b-256 checksum How to use checksums |
337bb93b0eb99eb350145965abd1ddeda19ce948df9cffdaa9f8c4980241ba7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 35.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
aa32db3d630a2b49e27f9da6573f2ce0436ccb134fe80f803a737229c62c7517
|
|
BLAKE2b-256 checksum How to use checksums |
fa31365305075ef9721af21ce3c3e31e89602443650bc1621a3fd0c6b20a1926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp311-cp311-macosx_12_0_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp311-cp311-macosx_12_0_x86_64.whl |
|---|---|
| Size | 27.1 MB |
| Tags | CPython 3.11 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
375132e7a7025eb297a648693c7a6d5115a4474af636f5214d9d8891d43382c9
|
|
BLAKE2b-256 checksum How to use checksums |
0084e27593afa9dae5e3a67e16fcffd2a787957e09600f926dd0cbe81831a26a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp310-cp310-win_amd64.whl
| Download URL | quantlib_risks-1.33.3-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 15.4 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0f330c84f506dc1fd44128b2d325eb0bf3a23c885cf1d7be7bdac743b38f4d9f
|
|
BLAKE2b-256 checksum How to use checksums |
a17530cae23c7642c8e64acc06f7d16fde9ff89c9892a3acb30db1c1ea6f69b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp310-cp310-musllinux_1_1_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp310-cp310-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 33.0 MB |
| Tags | CPython 3.10 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
13dde388e049e33e7ef9d43bb6330e5b8d09eecfacffb8f40beeae8d65d94eff
|
|
BLAKE2b-256 checksum How to use checksums |
778a7c9d3dd07481b1c1ddbc0df7b15f28ac12c48c2dbdf337cdf5866b8dfc84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 35.4 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
08e31444943fa68665120d44a56493baef773fd5b30ef10dc330ed4b8600b079
|
|
BLAKE2b-256 checksum How to use checksums |
99be4dff7a066a0627a93e9a24f77d9bc7d1e9873915dad0326584615766b9f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp310-cp310-macosx_12_0_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp310-cp310-macosx_12_0_x86_64.whl |
|---|---|
| Size | 27.1 MB |
| Tags | CPython 3.10 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
5e8c6793729dd639eee8e97e235be6cffa1d9c9cd07a3c15a7dafa7effb697ca
|
|
BLAKE2b-256 checksum How to use checksums |
fae042b53b9fd1c30e4d39561d8fbc0133287e65b09fce7482e392f6810a6cd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp39-cp39-win_amd64.whl
| Download URL | quantlib_risks-1.33.3-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 15.4 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4e6f5007a5748f78b6bb0ecb21186e5d47889b38cca80c5ab9b69ed3cd41be75
|
|
BLAKE2b-256 checksum How to use checksums |
7c7d4d5dafbd3257327ac472aa0a6a63a1f4ce96c7b8c26e6b4f74666804286f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp39-cp39-musllinux_1_1_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp39-cp39-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 33.0 MB |
| Tags | CPython 3.9 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
c98db14309a50057c8267b2dd63b1ad25cd55b0f409c7812fb377423695f643c
|
|
BLAKE2b-256 checksum How to use checksums |
7d1c712a8cf370ed91234c650bb212552edf2a68980f940e905fb21d05878a09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 35.4 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a9381a793d756cec702d9ac0925f6e3e5935cf4533ec4bb166a2ff1d0fa175f3
|
|
BLAKE2b-256 checksum How to use checksums |
8e485a2c7a82e1abe34335c7ea4d27db24902534d922de284a3d2dab4f4dd9c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp39-cp39-macosx_12_0_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp39-cp39-macosx_12_0_x86_64.whl |
|---|---|
| Size | 27.1 MB |
| Tags | CPython 3.9 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
80b5e55181fb2c4f12c0edf30baaaefe7ab8e021aa9c0380075b68c3948cf36c
|
|
BLAKE2b-256 checksum How to use checksums |
0761717be1687148f15349c38ffeafd3c1c2f2ad97b85de4a7981422cfa1dace
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp38-cp38-win_amd64.whl
| Download URL | quantlib_risks-1.33.3-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 15.4 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4fefd066a8a64f831734beca2e13ff1c335423416071d896eadfd70eb917c9b3
|
|
BLAKE2b-256 checksum How to use checksums |
b09bf0012c71ecc03ac342e74bf7d91ffce56767a6cd27cee613c030ee687b56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp38-cp38-musllinux_1_1_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp38-cp38-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 33.0 MB |
| Tags | CPython 3.8 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
41df198970220618e31592ba017a9831c9a54798fcdb62b9ffc27c9e7ca1750e
|
|
BLAKE2b-256 checksum How to use checksums |
58b3c6ec5f6c171004103571e80cdccbd394de548fa69d3c20b1f87085032b55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / quantlib_risks-1.33.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | quantlib_risks-1.33.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 35.4 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
83bd12df291d4d44cbfe7bf2e97b00e2f694279eb5caa87e1bc7e3f9bd8a5c2b
|
|
BLAKE2b-256 checksum How to use checksums |
43ad83c98e65b928a8b41bc8d507d6155e9679625ed36f32ca693d3a14bc603e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|