Financial Toolbox    

Pricing Functions

This example shows how easily you can compute the price of a bond with an odd first period using the SIA-compliant function bndprice. Assume you have a bond with these characteristics

Allow coupon payment period (Period = 2), day-count basis (Basis = 0), and end-of-month rule (EndMonthRule = 1) to assume the default values. Also, assume there is no odd last coupon date and that the face value of the bond is $100. Calling the function

returns a price of $113.60 and accrued interest of $0.59.

Similar functions compute prices with regular payments, odd first and last periods, as well as prices of Treasury bills and discounted securities such as zero-coupon bonds.


  SIA Semi-Annual Yield Conventions Yield Functions