Package org.jquantlib.cashflow

Examples of org.jquantlib.cashflow.FixedRateLeg


                            BusinessDayConvention.Unadjusted, BusinessDayConvention.Unadjusted,
                            DateGeneration.Rule.Backward, false);

          // fixed coupons
          final Leg cashflows =
              new FixedRateLeg(schedule, new Actual360())
              .withNotionals(faceAmount)
              .withCouponRates(couponRates)
              .withPaymentAdjustment(BusinessDayConvention.ModifiedFollowing).Leg();
          // redemption
          cashflows.add(new SimpleCashFlow(faceAmount, cashflows.last().date()));
View Full Code Here


      final double redemption) {
    super(exercise, conversionRatio, dividends, callability, creditSpread,
          issueDate, settlementDays, dayCounter, schedule, redemption);

    // notional forcibly set to 100
        this.cashflows_ = new FixedRateLeg(schedule,dayCounter)
            .withNotionals(100.0)
            .withCouponRates(coupons)
            .withPaymentAdjustment(schedule.businessDayConvention());

        addRedemptionsToCashflows(new double[] { redemption });
View Full Code Here

            final Date  issueDate){
        super(settlementDays, schedule.calendar(), issueDate);
        frequency_ = schedule.tenor().frequency();
        dayCounter_ = accrualDayCounter;
        //maturityDate_ = schedule.endDate();
        cashflows_ = new FixedRateLeg(schedule, accrualDayCounter)
        .withNotionals(faceAmount)
        .withCouponRates(coupons)
        .withPaymentAdjustment(paymentConvention).Leg();

        addRedemptionsToCashflows(new double[]{redemption});
View Full Code Here

        final Schedule schedule = new Schedule(startDate, maturityDate_, tenor,
                calendar_, accrualConvention, accrualConvention,
                rule, endOfMonth,
                firstDate, nextToLastDate);

        cashflows_ = new FixedRateLeg(schedule, accrualDayCounter)
        .withNotionals(faceAmount)
        .withCouponRates(coupons)
        .withPaymentAdjustment(paymentConvention);

        addRedemptionsToCashflows(new double[]{redemption});
View Full Code Here

        this.spread = spread;
        this.floatingDayCount = floatingDayCount;
        this.paymentConvention = paymentConvention;
        //FIXME this.fixingDays = fixingDays;

        final Leg fixedLeg = new FixedRateLeg(fixedSchedule, fixedDayCount)
        .withNotionals(nominal)
        .withCouponRates(fixedRate)
        .withPaymentAdjustment(paymentConvention)
        .Leg();
View Full Code Here

      final double redemption) {
    super(exercise, conversionRatio, dividends, callability, creditSpread,
          issueDate, settlementDays, dayCounter, schedule, redemption);

    // notional forcibly set to 100
        this.cashflows_ = new FixedRateLeg(schedule,dayCounter)
            .withNotionals(100.0)
            .withCouponRates(coupons)
            .withPaymentAdjustment(schedule.businessDayConvention())
            .Leg();
View Full Code Here

       
        frequency_ = schedule.tenor().frequency();
        dayCounter_ = accrualDayCounter;
        maturityDate_ = schedule.endDate().clone();
       
        cashflows_ = new FixedRateLeg(schedule, accrualDayCounter)
                .withNotionals(faceAmount)
                .withCouponRates(coupons)
                .withPaymentAdjustment(paymentConvention)
                .Leg();
View Full Code Here

        final Schedule schedule = new Schedule(startDate, maturityDate_, tenor,
                calendar_, accrualConvention, accrualConvention,
                rule, endOfMonth,
                firstDate, nextToLastDate);

        cashflows_ = new FixedRateLeg(schedule, accrualDayCounter)
        .withNotionals(faceAmount)
        .withCouponRates(coupons)
        .withPaymentAdjustment(paymentConvention);

        addRedemptionsToCashflows(new double[]{redemption});
View Full Code Here

        this.spread = spread;
        this.floatingDayCount = floatingDayCount;
        this.paymentConvention = paymentConvention;
        //FIXME this.fixingDays = fixingDays;

        final Leg fixedLeg = new FixedRateLeg(fixedSchedule, fixedDayCount)
        .withNotionals(nominal)
        .withCouponRates(fixedRate)
        .withPaymentAdjustment(paymentConvention)
        .Leg();
View Full Code Here

                            BusinessDayConvention.Unadjusted, BusinessDayConvention.Unadjusted,
                            DateGeneration.Rule.Backward, false);

          // fixed coupons
          final Leg cashflows =
              new FixedRateLeg(schedule, new Actual360())
              .withNotionals(faceAmount)
              .withCouponRates(couponRates)
              .withPaymentAdjustment(BusinessDayConvention.ModifiedFollowing).Leg();
          // redemption
          cashflows.add(new SimpleCashFlow(faceAmount, cashflows.last().date()));
View Full Code Here

TOP

Related Classes of org.jquantlib.cashflow.FixedRateLeg

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.