Hello, I am new to QuantLib and am trying to get it to replicate some simple bond math using QuantLib-Python. Suppose we have a 5-year bond with annual coupon payments of $5 and face value of $100, and interest rate of 4%. Classic calculations yield that the present value of the bond is $104.45. When I try to do this simple example in QuantLib-Python, I get $104.70--despite my attempts to strip out calendar conventions. How can I use QuantLib to line up with this simple bond math?
Link to the question on http://quant.stackexchange.com/q/32539/17936. ------------------------------------------------------------------------------ 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 |
For future reference: answered at <http://quant.stackexchange.com/questions/32539/simple-quantlib-bond-math> before the post to the mailing list was cleared. On Tue, Feb 21, 2017 at 10:01 AM Carter Page <[hidden email]> wrote:
------------------------------------------------------------------------------ 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 |
Free forum by Nabble | Edit this page |