Class CreditDefaultSwap

All Implemented Interfaces:
ComponentMarketParamRef
Direct Known Subclasses:
CDSComponent

public abstract class CreditDefaultSwap
extends CreditComponent
CreditDefaultSwap is the base abstract class implements the pricing, the valuation, and the RV analytics functionality for the CDS product. Targeted functions calibrate the flat spread and reset coupon (for calibration purposes).



Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • CreditDefaultSwap

      public CreditDefaultSwap()
  • Method Details

    • resetCoupon

      public abstract double resetCoupon​(double dblCoupon) throws java.lang.Exception
      Reset the CDS's coupon
      Parameters:
      dblCoupon - The new Coupon
      Returns:
      The old Coupon
      Throws:
      java.lang.Exception - Thrown if the coupon cannot be reset
    • calibFlatSpread

      public abstract double calibFlatSpread​(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp) throws java.lang.Exception
      Calibrate the CDS's flat spread from the calculated up-front points
      Parameters:
      valParams - ValuationParams
      pricerParams - PricerParams
      csqs - ComponentMarketParams
      vcp - Valuation Customization Parameters
      Returns:
      Calibrated flat spread
      Throws:
      java.lang.Exception - Thrown if cannot calibrate
    • valueFromQuotedSpread

      public abstract CaseInsensitiveTreeMap<java.lang.Double> valueFromQuotedSpread​(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, double dblFixCoupon, double dblQuotedSpread)
      Value the CDS from the Quoted Spread
      Parameters:
      valParams - ValuationParams
      pricerParams - PricerParams
      csqs - ComponentMarketParams
      vcp - Valuation Customization Parameters
      dblFixCoupon - Fix Coupon
      dblQuotedSpread - Quoted Spread
      Returns:
      The Value Map