SkillAgentSearch skills...

XVA

R Packing Calculating Credit Risk Valuation Adjustments

Install / Use

/learn @xvacode/XVA
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

xVA

Calculates Credit Risk Valuation Adjustments

Calculates a number of valuation adjustments including CVA, DVA, FBA, FCA, MVA and KVA.

A two-way margin agreement has been implemented.

For the KVA calculation three regulatory frameworks are supported: CEM, (simplified) SA-CCR, OEM and IMM.

The probability of default is implied through the credit spreads curve.

The package supports an exposure calculation based on SA-CCR which includes several trade types and a simulated path which is currently available only for IRSwaps.

The latest regulatory capital charge methodologies have been implementing including BA-CVA & SA-CVA.

If you want to become a contributor to this project, use this code for commercial purposes or for any other queries please contact us at info@openriskcalculator.com or visit our website www.openriskcalculator.com

Donate

If you have found this software of use, please consider supporting us by donating below:

<table border="0" cellpadding="10" cellspacing="0" align="left"><tr><td align="left"></td></tr><tr><td align="left"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SRBWEQJYJ8QM4&source=url" title="Donate via Paypal" onclick="javascript:window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700');"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a></td></tr></table>
View on GitHub
GitHub Stars19
CategoryDevelopment
Updated22d ago
Forks10

Languages

R

Security Score

80/100

Audited on Mar 13, 2026

No findings