Package org.jquantlib.instruments

Examples of org.jquantlib.instruments.ForwardRateAgreement.forwardRate()


            final ForwardRateAgreement fra = new ForwardRateAgreement(start, end, Position.Long,
                                      fraData[i].rate/100, 100.0,
                                      euribor3m, curveHandle);
            /*@Rate*/ final double expectedRate  = fraData[i].rate/100;
            /*@Rate*/ final double estimatedRate = fra.forwardRate().rate();
            if (Math.abs(expectedRate-estimatedRate) > tolerance) {
              throw new RuntimeException(
                  String.format("#%d %s %s %f %s %f",
                  i+1, " FRA failure:",
                            "\n  estimated rate: ", estimatedRate,
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.