On Fri, 2010-12-10 at 15:56 -0600, Le Shi wrote:
> If I know the bond’s dated date and payment frequency, how could I use
> QuantLib to calculate each coupon payment date?
You can use the Schedule class (look at the test suite for examples.)
Or, if you have instantiated the bond already, call bond.cashflows() to
get the vector of cashflows and loop over them calling c->date() on
each.
Luigi
--
The nice thing about standards is that there are so many of them to
choose from.
-- Andrew S. Tanenbaum
------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users