Re: Python QuantLib BondFunctions

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Python-QuantLib-BondFunctions-tp8129p8131.html

Dagur,
    you're correct, BondFunctions is not exported.  You can try adding
it to the SWIG interfaces and rebuilding the bindings; you can use the
CashFlows class as a model (it's in SWIG/cashflows.i).  If it works,
send me a patch and I'll add it to the repository.  And of course,
write back if you get stuck.

Luigi


On Thu, Jun 7, 2012 at 6:21 PM, Dagur Gunnarsson <[hidden email]> wrote:

> hello,
>
> Does anyone know how to calculate Duration for say, a fixedrate bond in
> Python-QuantLib, I am not able to find the BondFunctions class in the python
> bindings.
>
> regards
> Dagur G
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users