Is there functionality to model non-standard cash flows that may be associated with liability streams typically seen in insurance companies?
If not is there a work around that could be employed. Thanks |
Hi Charles, Francois Botha On 31 January 2017 at 11:35, Charles Allderman <[hidden email]> wrote: Is there functionality to model non-standard cash flows that may be ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Francois Thanks for this. How does one instantiate the cashflow class. I tried: ql.FixedRateLeg(Schedule, dayCount, nominals, rates) as the cashflow becomes a function of the rate vector/list and we need the cashflow to be the full nominal. Thanks Charles On Tue, Jan 31, 2017 at 12:04 PM, Francois Botha [via QuantLib] <[hidden email]> wrote:
|
Does this help: std::vector<shared_ptr<CashFlow> > leg; for (Integer i=0; i<3; ++i) leg.push_back(shared_ptr<CashFlow>(new SimpleCashFlow(1.0, today+i))); From the test in QuantLib\test-suite\cashflows.cpp Francois Botha On 31 January 2017 at 15:25, Charles Allderman <[hidden email]> wrote:
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Thanks for pointing me in the right direction! ql.CashFlows.npv(listofcashflows,spotCurve,spread,dayCount,ql.Continuous,ql.Annual,False) On Tue, Jan 31, 2017 at 3:32 PM, Francois Botha [via QuantLib] <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |