答复: single currency basis swap pricing

Posted by cheng li on
URL: http://quantlib.414.s1.nabble.com/single-currency-basis-swap-pricing-tp15842p15850.html

Hi Pierre,

 

If the basis swap you are interested in is vanilla ( here I mean there is no non-linear transformation on the rates, e.g. cap, floor..), you can use the trick that swap NPV is linearly depends on  leg BPS which is already used in VanillaSwap class.

 

As BPSs are already calculated in Swap class, you can simply calculate the fair spread using arithmetic like what VanillaSwap do.

 

Regards,

Cheng

 

发件人: Jean-Mathieu Vermosen [mailto:[hidden email]]
发送时间: 201499 0:17
收件人: Grison PG Pierre (External DEXIA-US)
抄送: [hidden email]
主题: Re: [Quantlib-users] single currency basis swap pricing

 

Hi Pierre,

 

I’m not sure the floatfloatswap class is fully functional right now. 

 

Alternatively, you can build each leg using its predefined constructor (iborLeg in ql/cashflows/iborCoupon.hpp, OvernightLeg in ql/cashflows/overnightindexedcoupon.hpp, etc) and pass the legs to the generic quantlib::swap constructor.

 

However, getting the fair spread value requires to set some 1D optimization loop, and I doubt this functionality has been implemented yet except for the fixed/float vanillaSwap class.

 

Best,

 

Jean-Mathieu Vermosen

 

On Sep 8, 2014, at 9:51 AM, Grison PG Pierre (External DEXIA-US) <[hidden email]> wrote:



Hello everyone,

 

Does anyone know how it is possible to price basis swap with QL (floating vs floating : ibor/ibor, ON index/ON index and ibor vs ON index)? Is the floatfloatswap class the most appropriate tool to calculate fair spread ?

 

Thank you,

 

Pierre

 

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

 


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users