Examples of ISDACDSCoupon


Examples of com.opengamma.analytics.financial.credit.cds.ISDACDSCoupon

    ArgumentChecker.isTrue(yieldCurveNames.length > 0, "at least one curve required");
    ArgumentChecker.isTrue(!date.isAfter(getPaymentDate()), "date is after payment date"); // Required: reference date <= payment date

    final String fundingCurveName = yieldCurveNames[0];

    return new ISDACDSCoupon(getCurrency(), getTimeBetween(date, getPaymentDate()), fundingCurveName, getPaymentYearFraction(), getNotional(), getRate(),
        getAccrualStartDate(), getAccrualEndDate(), getTimeBetween(date, getAccrualStartDate()), getTimeBetween(date, getAccrualEndDate()));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.credit.cds.ISDACDSCoupon

  public ISDACDSCoupon toDerivative(final ZonedDateTime date) {

    ArgumentChecker.notNull(date, "date");
    ArgumentChecker.isTrue(!date.isAfter(getPaymentDate()), "date is after payment date"); // Required: reference date <= payment date

    return new ISDACDSCoupon(getCurrency(), getTimeBetween(date, getPaymentDate()), getPaymentYearFraction(), getNotional(), getRate(),
        getAccrualStartDate(), getAccrualEndDate(), getTimeBetween(date, getAccrualStartDate()), getTimeBetween(date, getAccrualEndDate()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.