Click or drag to resize
Bond Class
Collection of bond functions.
Inheritance Hierarchy
SystemObject
  Imsl.FinanceBond

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
[SerializableAttribute]
public sealed class Bond

The Bond type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAccrint
Returns the interest which has accrued on a security that pays interest periodically.
Public methodStatic memberAccrintm
Returns the interest which has accrued on a security that pays interest at maturity.
Public methodStatic memberAmordegrc
Returns the depreciation for each accounting Frequency.
Public methodStatic memberAmorlinc
Returns the depreciation for each accounting Frequency.
Public methodStatic memberConvexity
Returns the convexity for a security.
Public methodStatic memberCoupdaybs
Returns the number of days starting with the beginning of the coupon period and ending with the settlement date.
Public methodStatic memberCoupdays
Returns the number of days in the coupon period containing the settlement date.
Public methodStatic memberCoupdaysnc
Returns the number of days starting with the settlement date and ending with the next coupon date.
Public methodStatic memberCoupncd
Returns the first coupon date which follows the settlement date.
Public methodStatic memberCoupnum
Returns the number of coupons payable between the settlement date and the maturity date.
Public methodStatic memberCouppcd
Returns the coupon date which immediately precedes the settlement date.
Public methodStatic memberDisc
Returns the implied interest rate of a discount bond.
Public methodStatic memberDuration
Returns the Macauley's duration of a security where the security has periodic interest payments.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIntrate
Returns the interest rate of a fully invested security.
Public methodStatic memberMduration
Returns the modified Macauley duration for a security with an assumed par value of $100.
Public methodStatic memberPrice
Returns the price, per $100 face value, of a security that pays periodic interest.
Public methodStatic memberPricedisc
Returns the price of a discount bond given the discount rate.
Public methodStatic memberPricemat
Returns the price, per $100 face value, of a discount bond.
Public methodStatic memberPriceyield
Returns the price of a discount bond given the yield.
Public methodStatic memberReceived
Returns the amount one receives when a fully invested security reaches the maturity date.
Public methodStatic memberTbilleq
Returns the bond-equivalent yield of a Treasury bill.
Public methodStatic memberTbillprice
Returns the price, per $100 face value, of a Treasury bill.
Public methodStatic memberTbillyield
Returns the yield of a Treasury bill.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberYearfrac
Returns the fraction of a year represented by the number of whole days between two dates.
Public methodStatic memberYield
Returns the yield of a security that pays periodic interest.
Public methodStatic memberYielddisc
Returns the annual yield of a discount bond.
Public methodStatic memberYieldmat
Returns the annual yield of a security that pays interest at maturity.
Top
Remarks

Definitions

rate is an annualized rate of return based on the par value of the bills.

yield is an annualized rate based on the purchase price and reflects the actual yield to maturity.

coupons are interest payments on a bond.

redemption is the amount a bond pays at maturity.

frequency is the number of times a year that a bond makes interest payments.

basis is the method used to calculate dates. For example, sometimes computations are done assuming 360 days in a year.

issue is the day a bond is first sold.

settlement is the day a purchaser aquires a bond.

maturity is the day a bond's principal is repaid.

Discount Bonds

Discount bonds, also called zero-coupon bonds, do not pay interest during the life of the security, instead they sell at a discount to their value at maturity. The discount bond methods all have settlement, maturity, basis and redemption as arguments. In the following list these common arguments are ommitted.

A related method is Accrintm, which returns the interest that has accumulated on the discount bond.

Treasury Bills

US Treasury bills are a special case of discount bonds. The basis is fixed for treasury bills and the redemption value is assumed to be $100. So these functions have only settlement and maturity as common arguments.

Interest Paying Bonds

Most bonds pay interest periodically. The interest paying bond methods all have settlement, maturity, basis and frequency as arguments. Again supressing the common arguments,

A related method is Accrint, which returns the interest that has accumulated at settlement from the previous coupon date.

Coupon days

In this diagram, the settlement date is shown as a hollow circle and the adjacent coupon dates are shown as filled circles.

  • Coupppcd is the coupon date immediately prior to the settlement date.
  • Coupncd is the coupon date immediately after the settlement date.
  • Coupdaybs is the number of days from the immediately prior coupon date to the settlement date.
  • Coupdaysnc is the number of days from the settlement date to the next Coupon date.
  • Coupdays is the number of days between these two coupon dates.

A related method is Coupnum, which returns the number of coupons payable between settlement and maturity.

Another related method is Yearfrac, which returns the fraction of the year between two days.

Duration

Duration is used to measure the sensitivity of a bond to changes in interest rates. Convexity is a measure of the sensitivity of duration.

See Also