Posted by
Peter Caspers-4 on
Jul 02, 2017; 7:09pm
URL: http://quantlib.414.s1.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p18375.html
Hi Cheng, Fagoal,
I think you can also make do without creating a new class, simply set up a leg of sub period coupons (which you can take from QuantLib or ORE / QuantExt, the latter being a bit more general, if needed) and then pass this leg into the generic Bond constructor (see bond.hpp)
Bond(Natural settlementDays,
const Calendar& calendar,
const Date& issueDate = Date(),
const Leg& coupons = Leg());
The leg only needs to contain the coupons, amortisation and redemption flows are added automatically based on the notional information that comes with the coupons.
Best Regards
Peter
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users