Re: Interest rate swap with floating leg pays compounded 7 day Repo rate on quarterly basis.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Interest rate swap with floating leg pays compounded 7 day Repo rate on quarterly basis.

Luigi Ballabio
2011/11/20 Shuo Wang <[hidden email]>:
> Hi,
>
> If I have an interest rate swap, that the floating leg is paying the
> compounded 7 day Repo rate on quarterly basis. What is the best way to
> fit into quantlib? I have checked around, this is pretty much same as
> the OvernightIndexedSwap, however, it doesnt seem that I can inherit
> OvernightIndexedSwap and change the compounding period to 7 days on
> the floating leg.

I'm not sure, but the SubPeriodsCoupon class in
<ql/experimental/coupons/subperiodcoupons.hpp> might behave as you
need.  Let me know if that works.

Luigi

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity
while improving strategic productivity.  Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users