Examples of fixingCalendar()


Examples of org.jquantlib.indexes.BMAIndex.fixingCalendar()

                                            liborIndex);
        }

        final Weekday w = vars.today.weekday();
        final Date lastWednesday = (w.ordinal() >= 4) ? vars.today.sub(w.ordinal() - 4) : vars.today.add(4 - w.ordinal() - 7);
        final Date lastFixing = bmaIndex.fixingCalendar().adjust(lastWednesday);
        bmaIndex.addFixing(lastFixing, 0.03);

        vars.termStructure = new PiecewiseYieldCurve<T,I,B>(
                      classT, classI, classB,
                      vars.settlement, vars.bmaHelpers,
View Full Code Here

Examples of org.jquantlib.indexes.BMAIndex.fixingCalendar()

            final Period tenor = new Period(bmaData[i].n, bmaData[i].units);

            final Schedule bmaSchedule = new MakeSchedule(vars.settlement,
                                                  vars.settlement.add(tenor),
                                                  new Period(vars.bmaFrequency),
                                                  bma.fixingCalendar(),
                                                  vars.bmaConvention)
                                    .backwards()
                                    .schedule();
            final Schedule liborSchedule = new MakeSchedule(vars.settlement,
                                                      vars.settlement.add(tenor),
View Full Code Here

Examples of org.jquantlib.indexes.BMAIndex.fixingCalendar()

     
      Date d = calendar.adjust(swap.maturityDate(), BusinessDayConvention.Following);
      Weekday w = d.weekday();
      Date nextWednesday = w.value() >=4 ? d.add(11 - w.value()) :  d.add(4 - w.value());
     
      latestDate = clonedIndex.valueDate(clonedIndex.fixingCalendar().adjust(nextWednesday));
    }
   
    /**
     * Do not set the relinkable handle as an observer.
     * Force recalculation when needed
View Full Code Here

Examples of org.jquantlib.indexes.Euribor.fixingCalendar()

            for (int i=0; i<fras; i++) {
                final Handle<Quote> r = new Handle<Quote>(fraRates[i]);
                fraHelpers[i] = new
                    FraRateHelper(r, fraData[i].n, fraData[i].n + 3,
                                  euribor3m.fixingDays(),
                                  euribor3m.fixingCalendar(),
                                  euribor3m.businessDayConvention(),
                                  euribor3m.endOfMonth(),
                                  euribor3m.dayCounter());
            }
View Full Code Here

Examples of org.jquantlib.indexes.IborIndex.fixingCalendar()

                                    .backwards()
                                    .schedule();
            final Schedule liborSchedule = new MakeSchedule(vars.settlement,
                                                      vars.settlement.add(tenor),
                                                      libor3m.tenor(),
                                                      libor3m.fixingCalendar(),
                                                      libor3m.businessDayConvention())
                                      .endOfMonth(libor3m.endOfMonth())
                                      .backwards()
                                      .schedule();
View Full Code Here

Examples of org.jquantlib.indexes.ibor.USDLibor.fixingCalendar()

                                    .backwards()
                                    .schedule();
            final Schedule liborSchedule = new MakeSchedule(vars.settlement,
                                                      vars.settlement.add(tenor),
                                                      libor3m.tenor(),
                                                      libor3m.fixingCalendar(),
                                                      libor3m.businessDayConvention())
                                      .endOfMonth(libor3m.endOfMonth())
                                      .backwards()
                                      .schedule();
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.