How to price a bond at specified dates

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

How to price a bond at specified dates

Lisa Ann
I am wondering what's the most efficient way (i.e. the method which involves the fewest arguments) to price a bond at a specified date, e.g. a future date (as instance, 6 months from now).

Let the object of class Bond is then priced using BondSetCouponPricer() and InstrumentSetPricingEngine() with a non-flat object of YieldTermStructure class (like a zero yield curve): does this take into account the whole shape of the yield term structure, considering the bond is not priced today but at a "new" tenor due to the fact that in this simulation six months have passed?

What if the Bond object is of FloatingRateBond class, thus having an IborIndex made up by an additional object of class YieldTermStructure?

Does this take into consideration the "new" tenor due to the fact that in this simulation six months have passed?

Thanks,


Reply | Threaded
Open this post in threaded view
|

Re: How to price a bond at specified dates

Luigi Ballabio
Hi all,
    just for reference: this was also asked and answered on
StackExchange at
<http://quant.stackexchange.com/questions/8891/how-to-price-a-bond-at-specified-dates-in-quantlib/8895#8895>

Luigi


On Thu, Sep 5, 2013 at 6:25 PM, Lisa Ann <[hidden email]> wrote:

> I am wondering what's the most efficient way (i.e. the method which involves
> the fewest arguments) to price a bond at a specified date, e.g. a future
> date (as instance, 6 months from now).
>
> Let the object of class *Bond *is then priced using *BondSetCouponPricer()*
> and *InstrumentSetPricingEngine()* with a non-flat object of
> *YieldTermStructure *class (like a zero yield curve): does this take into
> account the whole shape of the yield term structure, considering the bond is
> not priced today but at a "new" tenor due to the fact that in this
> simulation six months have passed?
>
> What if the *Bond *object is of *FloatingRateBond* class, thus having an
> *IborIndex *made up by an additional object of class *YieldTermStructure*?
>
> Does this take into consideration the "new" tenor due to the fact that in
> this simulation six months have passed?
>
> Thanks,
>
>
>
>
>
>
> --
> View this message in context: http://quantlib.10058.n7.nabble.com/How-to-price-a-bond-at-specified-dates-tp14511.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users