Re: Accrued Amount for Vanilla Swaps
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Accrued-Amount-for-Vanilla-Swaps-tp15068p15125.html
Hello,
I'm afraid that's not possible at this time. You'll have to extend the SWIG bindings and recompile them; specifically, you'll have to:
1) extend the VanillaSwap bindings so that they export the fixedLeg and floatingLeg methods.
2) extend the CashFlows bindings so that they export the accruedAmount method.
Once you have these, you can extract the legs from the swap and get the accrued amount of either.
Both the additions should not be difficult, given that the classes are already exported and you have other methods that you can use as models. However, let me know if you get stuck. Also, I'll be glad to merge your changes to the main repository if you want.
Luigi
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users