Login  Register

Quantlib Python - get linked TermStructure from RelinkableYieldTermStructureHandle

Posted by giambologna on Mar 28, 2017; 10:54pm
URL: http://quantlib.414.s1.nabble.com/Quantlib-Python-get-linked-TermStructure-from-RelinkableYieldTermStructureHandle-tp18156.html

Hello,

is there any way to get the link to which a RelinkableYieldTermStructureHandle points to ?

This is the background:

Say in some function in my code, I create a YieldTermStructure and then a RelinkableYieldTermStructureHandle which links to it. The function returns the RelinkableYieldTermStructureHandle only.

I have worked fine with the RelinkableYieldTermStructureHandle for pricing swaps and FRAs.
However now i want to use some of the CashFlows/YieldTermStructure functions that require a TermStructure object.
I was hoping I could retrieve the object via the derived member function currentLink() but I think that is not exposed.

Thanks,

GB