Package com.opengamma.analytics.financial.schedule

Examples of com.opengamma.analytics.financial.schedule.NoHolidayCalendar


        cds.getProtectionSeller(),
        cds.getReferenceEntity(),
        cds.getCurrency(),
        cds.getDebtSeniority(),
        cds.getRestructuringClause(),
        new NoHolidayCalendar(),
        cds.getStartDate(),
        cds.getEffectiveDate(),
        cds.getMaturityDate(),
        cds.getStubType(),
        cds.getCouponFrequency(),
View Full Code Here


        cds.getProtectionSeller(),
        cds.getReferenceEntity(),
        cds.getCurrency(),
        cds.getDebtSeniority(),
        cds.getRestructuringClause(),
        new NoHolidayCalendar(),
        startDate,
        effectiveDate,
        cds.getMaturityDate(),
        cds.getStubType(),
        cds.getCouponFrequency(),
View Full Code Here

        cds.getProtectionSeller(),
        cds.getReferenceEntity(),
        cds.getCurrency(),
        cds.getDebtSeniority(),
        cds.getRestructuringClause(),
        new NoHolidayCalendar(),
        cds.getStartDate(),
        cds.getEffectiveDate(),
        cds.getMaturityDate(),
        cds.getStubType(),
        cds.getCouponFrequency(),
View Full Code Here

        cds.getProtectionSeller(),
        cds.getReferenceEntity(),
        cds.getCurrency(),
        cds.getDebtSeniority(),
        cds.getRestructuringClause(),
        new NoHolidayCalendar(),
        startDate,
        effectiveDate,
        cds.getMaturityDate(),
        cds.getStubType(),
        cds.getCouponFrequency(),
View Full Code Here

        cds.getProtectionSeller(),
        cds.getReferenceEntity(),
        cds.getCurrency(),
        cds.getDebtSeniority(),
        cds.getRestructuringClause(),
        new NoHolidayCalendar(),
        startDate,
        effectiveDate,
        endDate,
        cds.getStubType(),
        cds.getCouponFrequency(),
View Full Code Here

    final ISDACDSDerivative cds = loadCDS_ISDAExampleUpfrontConverter().toDerivative(pricingDate, "IR_CURVE", "HAZARD_RATE_CURVE");
    final ISDACurve discountCurve = loadDiscountCurve_ISDAExampleExcel();

    final ISDAApproxCDSPricingMethod method = new ISDAApproxCDSPricingMethod();
    final Calendar calendar = new NoHolidayCalendar();
    final double cleanPrice = method.calculateUpfrontCharge(cds, discountCurve, 0.055, true, pricingDate, stepinDate, settlementDate, calendar);
    final double dirtyPrice = method.calculateUpfrontCharge(cds, discountCurve, 0.055, false, pricingDate, stepinDate, settlementDate, calendar);
    final double cleanPriceError = Math.abs( (cleanPrice - 185852.587288133) / cds.getNotional() );
    final double dirtyPriceError = Math.abs( (dirtyPrice - 59463.6983992436) / cds.getNotional() );
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.financial.schedule.NoHolidayCalendar

Copyright © 2018 www.massapicom. 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.