Login  Register

Re: I need some tips about Coercion

Posted by Ferdinando Ametrano-4 on Sep 15, 2009; 1:13pm
URL: http://quantlib.414.s1.nabble.com/I-need-some-tips-about-Coercion-tp12907p12910.html

On Tue, Sep 15, 2009 at 1:42 PM, Piter Dias <[hidden email]> wrote:
> May you help me?

Basically you won't be able to coerce between Rate and InterestRate,
because InterestRate also takes into account DayCount, Compounding,
and Frequency. While Simple and Annual might be sensible default
values for Compounding and Frequency, a default value for DayCount is
implausible.

btw I'm going to commit a fix removing the unused dayCounter parameter
in the FixedRateCoupon InterestRate-based constructor, which should
make my point above more evident.

Anyway you're not lost. I've just read the other thread where you
write about the problem you're having with Brazilian bonds.
Could you provide an example: ISIN and expected cash flow schedule?
I'm pretty sure you can have the correct bond in Excel using the
FixedLeg constructor and then the generic Bond constructor.

ciao -- Nando

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev