amortized swap

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

amortized swap

Przemek-8
Hi,

I'm not programmer but Ive been able compile C# swig port of quantlib and
I've been looking for solution of my problem for last couple of days - how
to price an amortized swap. Till now I know, that I have to create swap
object and "fill" it with object of simplecashflow class. But how ( I
couldn't figured out) can I implement other variables of swap: term
structure, nominal, frequency etc and how can I receive final result?

Przemek


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: amortized swap

Luigi Ballabio
On Sun, 2009-01-11 at 22:47 +0100, Przemek wrote:
> I'm not programmer but Ive been able compile C# swig port of quantlib and
> I've been looking for solution of my problem for last couple of days - how
> to price an amortized swap. Till now I know, that I have to create swap
> object and "fill" it with object of simplecashflow class. But how ( I
> couldn't figured out) can I implement other variables of swap: term
> structure, nominal, frequency etc and how can I receive final result?

You'll have to build the two legs. For the interest part (fixed-rate and
floating-rate) you can use the FixedLeg and IborLeg functions.  You can
pass there frequency, notionals etc.  Then you'll have to add the
notional payments by building the available SimpleCashFlow instance.
Finally, you can pass the two legs to the Swap class.

Luigi


--

Discontent is the first necessity of progress.
-- Thomas A. Edison



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users