Tools designed for use with CDS data
Project description
This package offers users simple tools designed for Credit Default Swap (CDS) data. Included in this package is a hazard rate bootstrapping function which implements the JP Morgan model for determining hazard rate curves, and spread calculators for both vanilla and binary CDSs. All functions linearly interpolate/extrapolate yield curve values wherever necessary.
To be included in future releases will be a function that prices Credit Default Swaptions (options on CDSs). Also, later editions of this package will offer the users options for interpolating/extrapolating yield curve values.
Bootstrapping Function: This function implements the so-called JP Morgan model. This model makes the assumptions that the interest rate process is independent of the default process and that default leg pays at the end of each accrual period. Typically, regular fee payments occur at the end of each period. To that end, this model assumes that defaults occur midway buring each payment period. And finally, this model assumes that the hazard rate is piecewise constant on the intervals that correspond to the maturities of the CDS contracts.
CDS pricing function: This function calculates the “fair” spread of a vanilla CDS, i.e. the spread that makes the value of the default/floating leg equal to the value of the payment/fixed leg. This is accomplished by using a given yield curve and given credit curve.
Binary CDS pricing function: Similar to the previous function, this one calculates the “fair” spread of a binary CDS by finding the spread that equates the value of the default/floating leg equal to the value of the payment/fixed leg. This is also accomplished using a provided yield curve and credit curve
Change Log
0.0.1 (10/08/2020)
First Release
0.0.2 (10/10/2020)
CDS spread calculator added. Some typos corrected.
0.0.3 (10/11/2020)
Yield curve interpolation/extrapolation component was corrected.
Binary CDS spread calculator added.
Documentation updated
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 Distribution
File details
Details for the file cdstools-0.0.3.tar.gz
.
File metadata
- Download URL: cdstools-0.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c95ddb6cb5729c9247ef10ef4dfc5e662115e4b7a3e09a1f39da618d47b6974b |
|
MD5 | c109c90374f32a344fee58c1cfed37d8 |
|
BLAKE2b-256 | 830e5d4268f1be9812f0a88367863e5ca9b8223076409007e07954bbf1d25d17 |