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