How to calculate coupon payment date?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to calculate coupon payment date?

Le Shi

 

Hi guys,

 

If I know the bond’s dated date and payment frequency, how could I use QuantLib to calculate each coupon payment date?

 

For example, a bond with dated date is March 1st, 2009, Semiannual, so the first coupon payment is September 1st, 2009. ……..

 

Thank you all!


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: How to calculate coupon payment date?

Luigi Ballabio
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