Accrued Amount for Swaps in Swig

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

Accrued Amount for Swaps in Swig

John Orford
Hey Guys,

I have updated swig and compiled it in order to use accruedAmount from Python.  See the commits here:

https://github.com/mmport80/quantlib/commit/ec43271ad5f0e099199903836dc4d2be4bf0c336

However, I get zero returned for accrued, using different combinations of the below function call in Python -

CashFlows.accruedAmount(swap.fixedLeg(), True, settlementDate)

Just wondering whether I am missing something straightforward, or whether there are a few leads I can follow before I spend more time troubleshooting...

John



------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Accrued Amount for Swaps in Swig

John Orford
OK - stupid mistake - forward starting swaps won't have any accruals until they, errr, start : )


On 4 August 2014 13:37, John Orford <[hidden email]> wrote:
Hey Guys,

I have updated swig and compiled it in order to use accruedAmount from Python.  See the commits here:

https://github.com/mmport80/quantlib/commit/ec43271ad5f0e099199903836dc4d2be4bf0c336

However, I get zero returned for accrued, using different combinations of the below function call in Python -

CashFlows.accruedAmount(swap.fixedLeg(), True, settlementDate)

Just wondering whether I am missing something straightforward, or whether there are a few leads I can follow before I spend more time troubleshooting...

John




------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users