Package org.jquantlib.instruments

Examples of org.jquantlib.instruments.ForwardRateAgreement


                                           euribor3m.endOfMonth());
            final Date end = vars.calendar.advance(start, 3, TimeUnit.Months,
                                             euribor3m.businessDayConvention(),
                                             euribor3m.endOfMonth());

            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

Related Classes of org.jquantlib.instruments.ForwardRateAgreement

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.