A production-grade educational implementation of xVA (CVA/DVA/FVA/MVA/KVA) calculations for counterparty credit risk, featuring Monte Carlo simulation, collateral management, and regulatory capital ...