qlYieldTSParRate

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

qlYieldTSParRate

Hamard, Stéphane

Hi,

 

Again, thanks you very much for your answers regarding the future convexity adjustment.

 

Now, I’m trying to use the function qlYieldTSParRate, but whatever the value of the argument StartDate, I have this error message:

 

qlYieldTSParRate - unable to convert parameter 'startDate' to type class QuantLib::Date - Date's serial number (0) outside allowed range [367-73050], i.e. [January 1st, 1901-December 31st, 2099]

 

There is a bug with this function?

 

Stéphane

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: qlYieldTSParRate

Ferdinando M. Ametrano-3
On Jan 18, 2008 3:28 PM, Hamard, Stéphane
<[hidden email]> wrote:
> I'm trying to use the function qlYieldTSParRate, but whatever the value
> of the argument StartDate, I have this error message:
>
> qlYieldTSParRate - unable to convert parameter 'startDate' to type class
> QuantLib::Date - Date's serial number (0) outside allowed range [367-73050],
> i.e. [January 1st, 1901-December 31st, 2099]
>
> There is a bug with this function?

it might help to know which version of the XL addin you are using.
Anyway I don't think there is a bug, On the forthcoming 0.9.0 release
=qlYieldTSParRate(E10,1,TODAY()+365,"Annual") returns a valid result
(where E10 has a valid YieldTermStructure ID

ciao -- Nando

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: qlYieldTSParRate

Hamard, Stéphane
Thanks you very much.
I filled 1Y as the tenor argument instead of 1.

Stéphane.



-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Ferdinando Ametrano
Sent: mardi 22 janvier 2008 16:28
To: Hamard, Stéphane
Cc: [hidden email]
Subject: Re: [Quantlib-users] qlYieldTSParRate

On Jan 18, 2008 3:28 PM, Hamard, Stéphane
<[hidden email]> wrote:
> I'm trying to use the function qlYieldTSParRate, but whatever the value
> of the argument StartDate, I have this error message:
>
> qlYieldTSParRate - unable to convert parameter 'startDate' to type class
> QuantLib::Date - Date's serial number (0) outside allowed range [367-73050],
> i.e. [January 1st, 1901-December 31st, 2099]
>
> There is a bug with this function?

it might help to know which version of the XL addin you are using.
Anyway I don't think there is a bug, On the forthcoming 0.9.0 release
=qlYieldTSParRate(E10,1,TODAY()+365,"Annual") returns a valid result
(where E10 has a valid YieldTermStructure ID

ciao -- Nando

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users