Posted by
Chuck Swiger-4 on
URL: http://quantlib.414.s1.nabble.com/Python-SwapRateHelper-tp7908p7910.html
On Wed, 2009-09-16 at 15:02 +0200, Luigi Ballabio wrote:
> On Wed, 2009-09-16 at 06:43 -0400, Charles Swiger wrote:
> > Hi All - Enjoying the project very much. I'm trying to implement
> > bonds.cpp in Python and stuck at:
> >
> > boost::shared_ptr<RateHelper> s2y(new SwapRateHelper(...)
> >
> > getting an error about wrong number of args [...]
> >
> > Does this mean the Python wrapper is incomplete for implementing
> > bonds.cpp, or am I missing something??
>
> The wrapper is missing a couple of arguments. You can try and add them
> to the SWIG interface file---or you can just ignore them and go ahead
> with the example. The quote is empty anyway, and the 1-day forward
> start will modify the floating rates a bit but won't change the point of
> the example. You can compile Bonds.cpp with forwardStart = 0*Days to
> check the results.
>
Ok, I'll try to add them to the SWIG interface file as it's looks like
it won't work with ANY python args.
Doing these in Python is good learning exercise, then using the ql in a
gui like wyPython is not too difficult.
--Chuck
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users