Question on Amortizing Swap and CVA

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

Question on Amortizing Swap and CVA

Yuan Zhou
I'm a new user of Quantlib, and would like to know what is the best way to construct & value amortizing swap using Quantlib? Secondly, is there a module dealing with CVA for derivative?

Thank you very much.

--
Yuan Zhou
Director
Riverside Risk Advisors LLC
p 646-283-1478
www.riversideadvisors.com



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Question on Amortizing Swap and CVA

Luigi Ballabio
On Mon, 2010-09-27 at 18:20 -0400, Yuan Zhou wrote:
> I'm a new user of Quantlib, and would like to know what is the best
> way to construct & value amortizing swap using Quantlib?

At this time, you'll have to build the two legs manually.  You can use
FixedRateLeg and IborLeg to build the coupon payments with decreasing
notionals; then you can append pointers to SimpleCashFlow to model the
notional payments.  Once you have the two legs, you can use them to
build a Swap instance.

>  Secondly, is there a module dealing with CVA for derivative?

Not yet.  If that's enough for you, you can add a spread to your
discount curve with the ForwardSpreadedTermStructure class.

Luigi


--

Innovation is hard to schedule.
-- Dan Fylstra



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users