Skip to main content

An XVA quantitative library with AAD

Project description


An xVA quantitative library written in pure python using tensorflow.


The easiest way to install riskflow is via pip

pip install riskflow

Note that this installs tensorflow 1.14 (the cpu version). If gpu's are available, please install tensorflow-gpu (also version 1.14) Downloading the source and running setup also works.

python install


Documentation is available at readthedocs.


There are 2 batch scripts installed :

  • RF_Batch runs CVA, CollVA and FVA calculations on a folder of netting sets
  • RF_Bootstrap currently only calculates hull white 2 factor parameters from swaption vols

Known issues

  1. The hessian (matrix of second derivatives) does not always compute - this may be a bug in tensorflow

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for riskflow, version 0.1.2.dev0
Filename, size File type Python version Upload date Hashes
Filename, size riskflow-0.1.2.dev0-py3-none-any.whl (915.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size riskflow-0.1.2.dev0.tar.gz (868.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page