fagoal
2017-07-03 09:47:33 UTC
OkïŒi will try it. Another question , this solution supports calculation of a coupon which is divided into several parts, for example payment semiannualïŒfixing 3monthïŒbut does it support payment 1month , and fixing 6mont? which means that one rate fixing determines next several coupon payment
åèªæçiPhone
------------------ åå§é®ä»¶ ------------------
å件人: cheng li <***@gmail.com>
åéæ¶éŽ: 2017幎7æ3æ¥ 11:43
æ¶ä»¶äºº: 'å¬' <***@gmail.com>
äž»é¢: åå€ïŒçå€: åå€ïŒçå€: [Quantlib-users] Adjustable Rate Bonds Pricing
FYI. I attached the Peter Casperâs answer which should be an easier solution. It still use sub period coupon. However there is no need to create a new class.
Regards,
Cheng
å件人: ***@qq.com [mailto:***@qq.com] 代衚 å¬
åéæ¶éŽ: 2017幎7æ3æ¥ 11:00
æ¶ä»¶äºº: cheng li <***@gmail.com>
äž»é¢: åå€ïŒçå€: [Quantlib-users] Adjustable Rate Bonds Pricing
I am using floatingratebond to do the jobïŒ but it does'n work . So what you mean is that i need to create a new instrument like floatingratebond and using the subperiodcoupon to solve this caseïŒ
åèªæçiPhone
------------------ åå§é®ä»¶ ------------------
å件人: cheng li <***@gmail.com>
åéæ¶éŽ: 2017幎7æ2æ¥ 22:42
æ¶ä»¶äºº: 'fagoal' <***@gmail.com>, quantlib-users <quantlib-***@lists.sourceforge.net>
äž»é¢: åå€ïŒçå€: [Quantlib-users] Adjustable Rate Bonds Pricing
Hi Fagoal,
Floating rate bond class under the instruments folder should partially meets
your requirements:
https://github.com/lballabio/QuantLib/blob/master/ql/instruments/bonds/float
ingratebond.hpp
This is a bond with variable rate linked to a ibor index.
According to your further description, you are looking forward to the sub
period coupon class under QuantLib experimental folder:
https://github.com/lballabio/QuantLib/blob/master/ql/experimental/coupons/su
bperiodcoupons.hpp
Peter Casper has another similar version of this in his open risk engine
project:
https://github.com/OpenSourceRisk/Engine/blob/master/QuantExt/qle/cashflows/
subperiodscoupon.hpp
also based on QuantLib.
It should be easy for yourself to extend QuantLib with a new type of bond
class based on sub period coupon. It will be very similar to floating rate
bond class.
Regards,
Cheng
-----é®ä»¶å件-----
å件人: fagoal [mailto:***@gmail.com]
åéæ¶éŽ: 2017幎7æ1æ¥ 15:24
æ¶ä»¶äºº: quantlib-***@lists.sourceforge.net
äž»é¢: Re: [Quantlib-users] Adjustable Rate Bonds Pricing
Does quantlib 1.9 support this non-trival case? like fixing rate frequency
is quarterly and payment frequency is semiannual.
--
View this message in context:
http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p183
73.html
Sent from the quantlib-users mailing list archive at Nabble.com.
----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
QuantLib-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
åèªæçiPhone
------------------ åå§é®ä»¶ ------------------
å件人: Peter Caspers-4 [via QuantLib] <ml+***@n7.nabble.com>
åéæ¶éŽ: 2017幎7æ3æ¥ 03:12
æ¶ä»¶äºº: fagoal <***@gmail.com>
äž»é¢: åå€ïŒçå€: Adjustable Rate Bonds Pricing
Hi Cheng, Fagoal,
I think you can also make do without creating a new class, simply set up a leg of sub period coupons (which you can take from QuantLib or ORE / QuantExt, the latter being a bit more general, if needed) and then pass this leg into the generic Bond constructor (see bond.hpp)
Bond(Natural settlementDays,
const Calendar& calendar,
const Date& issueDate = Date(),
const Leg& coupons = Leg());
The leg only needs to contain the coupons, amortisation and redemption flows are added automatically based on the notional information that comes with the coupons.
Best Regards
Peter
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
If you reply to this email, your message will be added to the discussion below:
http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p18375.html
To unsubscribe from Adjustable Rate Bonds Pricing, click here.
NAML
--
View this message in context: http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp18376.html
Sent from the quantlib-users mailing list archive at Nabble.com.
åèªæçiPhone
------------------ åå§é®ä»¶ ------------------
å件人: cheng li <***@gmail.com>
åéæ¶éŽ: 2017幎7æ3æ¥ 11:43
æ¶ä»¶äºº: 'å¬' <***@gmail.com>
äž»é¢: åå€ïŒçå€: åå€ïŒçå€: [Quantlib-users] Adjustable Rate Bonds Pricing
FYI. I attached the Peter Casperâs answer which should be an easier solution. It still use sub period coupon. However there is no need to create a new class.
Regards,
Cheng
å件人: ***@qq.com [mailto:***@qq.com] 代衚 å¬
åéæ¶éŽ: 2017幎7æ3æ¥ 11:00
æ¶ä»¶äºº: cheng li <***@gmail.com>
äž»é¢: åå€ïŒçå€: [Quantlib-users] Adjustable Rate Bonds Pricing
I am using floatingratebond to do the jobïŒ but it does'n work . So what you mean is that i need to create a new instrument like floatingratebond and using the subperiodcoupon to solve this caseïŒ
åèªæçiPhone
------------------ åå§é®ä»¶ ------------------
å件人: cheng li <***@gmail.com>
åéæ¶éŽ: 2017幎7æ2æ¥ 22:42
æ¶ä»¶äºº: 'fagoal' <***@gmail.com>, quantlib-users <quantlib-***@lists.sourceforge.net>
äž»é¢: åå€ïŒçå€: [Quantlib-users] Adjustable Rate Bonds Pricing
Hi Fagoal,
Floating rate bond class under the instruments folder should partially meets
your requirements:
https://github.com/lballabio/QuantLib/blob/master/ql/instruments/bonds/float
ingratebond.hpp
This is a bond with variable rate linked to a ibor index.
According to your further description, you are looking forward to the sub
period coupon class under QuantLib experimental folder:
https://github.com/lballabio/QuantLib/blob/master/ql/experimental/coupons/su
bperiodcoupons.hpp
Peter Casper has another similar version of this in his open risk engine
project:
https://github.com/OpenSourceRisk/Engine/blob/master/QuantExt/qle/cashflows/
subperiodscoupon.hpp
also based on QuantLib.
It should be easy for yourself to extend QuantLib with a new type of bond
class based on sub period coupon. It will be very similar to floating rate
bond class.
Regards,
Cheng
-----é®ä»¶å件-----
å件人: fagoal [mailto:***@gmail.com]
åéæ¶éŽ: 2017幎7æ1æ¥ 15:24
æ¶ä»¶äºº: quantlib-***@lists.sourceforge.net
äž»é¢: Re: [Quantlib-users] Adjustable Rate Bonds Pricing
Does quantlib 1.9 support this non-trival case? like fixing rate frequency
is quarterly and payment frequency is semiannual.
--
View this message in context:
http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p183
73.html
Sent from the quantlib-users mailing list archive at Nabble.com.
----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
QuantLib-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
åèªæçiPhone
------------------ åå§é®ä»¶ ------------------
å件人: Peter Caspers-4 [via QuantLib] <ml+***@n7.nabble.com>
åéæ¶éŽ: 2017幎7æ3æ¥ 03:12
æ¶ä»¶äºº: fagoal <***@gmail.com>
äž»é¢: åå€ïŒçå€: Adjustable Rate Bonds Pricing
Hi Cheng, Fagoal,
I think you can also make do without creating a new class, simply set up a leg of sub period coupons (which you can take from QuantLib or ORE / QuantExt, the latter being a bit more general, if needed) and then pass this leg into the generic Bond constructor (see bond.hpp)
Bond(Natural settlementDays,
const Calendar& calendar,
const Date& issueDate = Date(),
const Leg& coupons = Leg());
The leg only needs to contain the coupons, amortisation and redemption flows are added automatically based on the notional information that comes with the coupons.
Best Regards
Peter
Hi Fagoal,
Floating rate bond class under the instruments folder should partially meets
https://github.com/lballabio/QuantLib/blob/master/ql/instruments/bonds/float
ingratebond.hpp
This is a bond with variable rate linked to a ibor index.
According to your further description, you are looking forward to the sub
https://github.com/lballabio/QuantLib/blob/master/ql/experimental/coupons/su
bperiodcoupons.hpp
Peter Casper has another similar version of this in his open risk engine
https://github.com/OpenSourceRisk/Engine/blob/master/QuantExt/qle/cashflows/
subperiodscoupon.hpp
also based on QuantLib.
It should be easy for yourself to extend QuantLib with a new type of bond
class based on sub period coupon. It will be very similar to floating rate
bond class.
Regards,
Cheng
-----é®ä»¶å件-----
å件人: fagoal [mailto:[hidden email]]
åéæ¶éŽ: 2017幎7æ1æ¥ 15:24
æ¶ä»¶äºº: [hidden email]
äž»é¢: Re: [Quantlib-users] Adjustable Rate Bonds Pricing
Does quantlib 1.9 support this non-trival case? like fixing rate frequency
is quarterly and payment frequency is semiannual.
--
http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p183
73.html
Sent from the quantlib-users mailing list archive at Nabble.com.
----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------Floating rate bond class under the instruments folder should partially meets
https://github.com/lballabio/QuantLib/blob/master/ql/instruments/bonds/float
ingratebond.hpp
This is a bond with variable rate linked to a ibor index.
According to your further description, you are looking forward to the sub
https://github.com/lballabio/QuantLib/blob/master/ql/experimental/coupons/su
bperiodcoupons.hpp
Peter Casper has another similar version of this in his open risk engine
https://github.com/OpenSourceRisk/Engine/blob/master/QuantExt/qle/cashflows/
subperiodscoupon.hpp
also based on QuantLib.
It should be easy for yourself to extend QuantLib with a new type of bond
class based on sub period coupon. It will be very similar to floating rate
bond class.
Regards,
Cheng
-----é®ä»¶å件-----
å件人: fagoal [mailto:[hidden email]]
åéæ¶éŽ: 2017幎7æ1æ¥ 15:24
æ¶ä»¶äºº: [hidden email]
äž»é¢: Re: [Quantlib-users] Adjustable Rate Bonds Pricing
Does quantlib 1.9 support this non-trival case? like fixing rate frequency
is quarterly and payment frequency is semiannual.
--
http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p183
73.html
Sent from the quantlib-users mailing list archive at Nabble.com.
----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
If you reply to this email, your message will be added to the discussion below:
http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp5756p18375.html
To unsubscribe from Adjustable Rate Bonds Pricing, click here.
NAML
--
View this message in context: http://quantlib.10058.n7.nabble.com/Adjustable-Rate-Bonds-Pricing-tp18376.html
Sent from the quantlib-users mailing list archive at Nabble.com.