Re: Issue Amount

Posted by FORNAROLA CHIARA on
URL: http://quantlib.414.s1.nabble.com/Issue-Amount-tp803p804.html

Ok Enrico,

I understand we're talking of different releases.
Which is the release you're currently using?
I've just checked the lastest available on quantlib.org, if you're using it, it's correct that you see: fixedcouponbond.cpp instead of fixedratebond.cpp (this is a new version of fixedcouponbond.cpp that hasn't been released yet).
So talking of fixedcouponbond.cpp, if I remember correctly, you don't have to pass a schedule but in the case of BTPS 3 06/01/07 you should pass the following:
FaceAmount: 100
issueDate: Tue, 01-Jun-2004
datedDate: Tue, 01-Jun-2004   (this is important is the first accrual date)
maturityDate: Fri, 01-Jun-2007
settlementDays: 3
coupons: 3%
couponFrequency: SemiAnnual
calendar: TARGET
dayCounter: Actual/Actual (ISMA)
accrualConvention: Unadjusted
paymentConvention: Following
redemption: 100
discountCurve: handle to the yield curve you're using to valuate the bond
stub: #N/A
backward generation: TRUE

The parameters above will give you the bond object you want to construct.....
Hope this will help.

Chiara



-----Original Message-----
From: Enrico Gargiulo [mailto:[hidden email]]
Sent: Thursday, May 03, 2007 3:39 PM
To: FORNAROLA CHIARA
Cc: [hidden email]
Subject: RE: [Quantlib-users] Issue Amount

-----Original Message-----
From: FORNAROLA CHIARA [mailto:[hidden email]]
Sent: giovedì 3 maggio 2007 12.58
To: Enrico Gargiulo
Cc: [hidden email]
Subject: RE: [Quantlib-users] Issue Amount

Hi Enrico

In QuantLib you don't need to set any issue price to create a bond object.
In general, there's no need to specify the issue price of a bond unless in
the bond's prospectus it is stated that the bond's yield is floored to a
minimum yield which is set depending on the issue price.
In your case, since the bond you mentioned is BTPS 3 06/01/07, which is a
vanilla fixed rate bond, you just need to construct a schedule given the
following static bond data:

Interest Accrual Date: Tue, 01-Jun-2004
Maturity Date: Fri, 01-Jun-2007
Tenor: 6M
Calendar: Target
AccrualBDC: Unadjusted
Termination Adjustment: Unadjusted
Backward Generation: TRUE
EOM: FALSE
First Date: #N/A
Next to Last Date: #N/A

and to pass all the other require input data which are:

settlementDays: 3
paymentBDC: "Following"  (is not specified in the bond prospectus I read)  
FaceAmount: 100
Schedule: see above      
Coupons: 3%
dayCounter: Actual/Actual (ISMA)
Redemption: 100
issueDate: If omitted, default = bond schedule first date
YieldCurve: discounting yield term structure

You construct a fixedratebond object as illustrated above and price
correctly the bond in assetswap (I've checked my result against BBG's ASW
<go>).

Chiara

Ps please let me know if you have a more detailed prospectus of the bond
which gives you more information on its static data.
 



First of all many thanks for your reply.

I don't understand some things: first of all I cannot find a fixedratebond
class in the quantlib library. I tried using fixedcouponbond, but I don't
know how to pass it the scheduler object. I've seen in the source code
fixedcouponbond.cpp that is created a schedule passing it some parameters
from the constructor.

Sorry for my elementary questions, but I'm a beginner user of Quantlib.

Thanks
Enrico




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users