I am using QuantLib v1.4-7 on Centos. I've attached a sample program, makefile, and several sample inputs to demonstrate the issues I am having. My source for libor fixes is http://www.global-rates.com/interest-rates/libor/american-dollar/american-dollar.aspx$ ./testYieldCurve 20160902.csv inTenor,inMatDate,inFix,outValDate,outMatDate,outDays 1d,2016-09-06,0.00420440,2016-09-02,2016-09-06,4 1w,2016-09-13,0.00443000,2016-09-06,2016-09-13,7 1m,2016-10-06,0.00525720,2016-09-06,2016-10-06,30 2m,2016-11-07,0.00661890,2016-09-06,2016-11-07,62 3m,2016-12-06,0.00835110,2016-09-06,2016-12-06,91 6m,2017-03-06,0.01247060,2016-09-06,2017-03-06,181 12m,2017-09-06,0.01559440,2016-09-06,2017-09-06,365 EvaluationDate: 2016-09-02 ReferenceDate: 2016-09-07 Curve nodes: ERR: could not get curve nodes, 1st iteration: failed at 1st alive instrument, maturity September 13th, 2016, reference date September 7th, 2016: negative time (-0.00277778) given $ ./testYieldCurve 20160906.csv inTenor,inMatDate,inFix,outValDate,outMatDate,outDays 1d,2016-09-07,0.00420440,2016-09-06,2016-09-07,1 1w,2016-09-15,0.00443000,2016-09-08,2016-09-15,7 1m,2016-10-11,0.00516560,2016-09-08,2016-10-11,33 2m,2016-11-08,0.00663000,2016-09-08,2016-11-08,61 3m,2016-12-08,0.00840670,2016-09-08,2016-12-08,91 6m,2017-03-08,0.01250060,2016-09-08,2017-03-08,181 12m,2017-09-08,0.01561330,2016-09-08,2017-09-08,365 EvaluationDate: 2016-09-06 ReferenceDate: 2016-09-08 Curve nodes: 2016-09-08,0.00442981 2016-09-15,0.00442981 2016-10-10,0.00516441 2016-11-08,0.00662628 2016-12-08,0.00839778 2017-03-08,0.01246148 2017-09-08,0.01549101 Check original rate fixes 1d,2016-09-07,0.00420440,ERR:negative time (-0.00277778) given 1w,2016-09-15,0.00443000,0.44300000 % Actual/360 simple compounding 1m,2016-10-11,0.00516560,0.52160702 % Actual/360 simple compounding 2m,2016-11-08,0.00663000,0.66300000 % Actual/360 simple compounding 3m,2016-12-08,0.00840670,0.84067000 % Actual/360 simple compounding 6m,2017-03-08,0.01250060,1.25006000 % Actual/360 simple compounding 12m,2017-09-08,0.01561330,1.56133000 % Actual/360 simple compounding Regards, Vinod ------------------------------------------------------------------------------ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users Makefile (298 bytes) Download Attachment 20160902.csv (228 bytes) Download Attachment 20160905.csv (196 bytes) Download Attachment 20160906.csv (228 bytes) Download Attachment Main.cpp (6K) Download Attachment |
Free forum by Nabble | Edit this page |