Dear list,------------------------------------------------------------------------------I need advice on the use of ZeroCurve in Python.In one of the great IPython notebook examples (http://www.implementingquantlib.com/2015/05/quantlib-notebook-duration-of-floating.html) Luigi demonstrates the convenience of using a QuoteHandle in a FlatForward termstructure. Using the QuoteHandle, one can change the curve rate and reprice the instrument with great convenience.As I understand it, this is not possible with the ZeroCurve. If I link an instrument to a ZeroCurve and want to change the curve rates, I'll need to create a new ZeroCurve object and link it to the instrument (via its YieldTermStructureHandle). This is most inconvenient. This is because ZeroCurve can only be constructed using a list of numbers, not a list of handles.Quantlib itself has a constructor that supports a vector of QuoteHandles. Is it difficult to enhance the SWIG interface to allow for this constructor as well on the Python side, or are there alternative solutions?
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
<http://leanpub.com/implementingquantlib/>
<http://implementingquantlib.com>
<http://twitter.com/lballabio>
Free forum by Nabble | Disable Popup Ads | Edit this page |