Package com.opengamma.analytics.financial.credit.creditdefaultswap.definition.vanilla

Examples of com.opengamma.analytics.financial.credit.creditdefaultswap.definition.vanilla.CreditDefaultSwapDefinition.withMaturityDate()


    CreditDefaultSwapDefinition shortCDS = cdsSwaption.getUnderlyingCDS();

    shortCDS = shortCDS.withStartDate(cdsSwaption.getStartDate());
    shortCDS = shortCDS.withEffectiveDate(cdsSwaption.getStartDate().plusDays(1));
    shortCDS = shortCDS.withMaturityDate(cdsSwaption.getOptionExerciseDate());

    // Generate the cashflow schedule for the (forward) premium leg
    final ZonedDateTime[] underlyingCDSPremiumLegSchedule = PREMIUM_LEG_SCHEDULE_CALCULATOR.constructCreditDefaultSwapPremiumLegSchedule(underlyingCDS);

    final ZonedDateTime[] shortCDSPremiumLegSchedule = PREMIUM_LEG_SCHEDULE_CALCULATOR.constructCreditDefaultSwapPremiumLegSchedule(shortCDS);
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.