Examples of fixing()


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

        // check deposits
        for (int i=0; i<vars.deposits; i++) {
            final Euribor index = new Euribor(new Period(depositData[i].n, depositData[i].units), curveHandle);
            /*@Rate*/ final double expectedRate  = depositData[i].rate/100;
            /*@Rate*/ final double estimatedRate = index.fixing(vars.today);
            if (Math.abs(expectedRate-estimatedRate) > tolerance) {
              throw new RuntimeException(
                  String.format("%d %s %s %s %f %s %f",
                      depositData[i].n,
                      depositData[i].units == TimeUnit.Weeks ? "week(s)" : "month(s)",
View Full Code Here

Examples of org.jquantlib.indexes.InterestRateIndex.fixing()

      if (fixingDates.get(i+1).lt(startDate) || nextValueDate.le(startDate)) {
        continue;
      }
     
      d2 = Date.min(nextValueDate, endDate);
      avgBMA += (index.fixing(fixingDates.get(i))) * (d2.sub(d1));
      days += d2.sub(d1);
     
      d1 = d2;
    }
   
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.