Login  Register

Re: Asset swap spread calculation

Posted by Peter Caspers-4 on Apr 10, 2015; 4:22pm
URL: http://quantlib.414.s1.nabble.com/Asset-swap-spread-calculation-tp16457p16460.html

ok, which "market price" do you enter in your application and what do
you get then for yield, clean price, dirty price, asset swap spread ?

On 10 April 2015 at 17:48, MDecau <[hidden email]> wrote:

> Sure. But I should first let you know that I am not using the real QuantLib,
> but QLNet instead, which is just the C# version of Quantlib. I guess you're
> also familiar with it, it is almost always exactly the same structures and
> function names.
>
> Here is a link to download the code of my small test program (only 4 small
> files, but don't forget to add a reference to QLNet dll) :
> Bond_pricer_test.zip
> <http://quantlib.10058.n7.nabble.com/file/n16459/Bond_pricer_test.zip>
>
> And here is the part that does not work (at the far end of the
> FixedRateBondProcess class) :
>
>             IPricingEngine assetSwapEngine = new
> DiscountingSwapEngine(Program.currentYieldCurves.discountingTermStructure);
>
>             AssetSwap assSwap = new AssetSwap(true, fixedRateBond,
> fixedRateBond.cleanPrice(yield, dc, Compounding.Compounded,
> Frequency.Annual), new
> Euribor6M(Program.currentYieldCurves.discountingTermStructure), 0);
>
>             assSwap.setPricingEngine(assetSwapEngine);
>
>             Console.WriteLine("Asset Swap Spread = " +
> assSwap.fairSpread());
>
>
>
> --
> View this message in context: http://quantlib.10058.n7.nabble.com/Asset-swap-spread-calculation-tp16457p16459.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users