| WebCab Bonds for COM v2.01 | |
DurationConvexity.PriceOfBond Method
Evaluates the price of a bond via the relationship between its yield and cash flows.
Parameters
- yield
- The continuously compounded yield which the bond pays expressed in decimal format (i.e. 1 percent = 0.01).
- coupons
- An array where the first term is the first coupon payment and the second term is the second coupon payment and so on.
- evaluationDate
- The date when the price of the bond is evaluated.
- dateOfCoupons
- An array of dates where the first term corresponds to the date of the first coupon payment, the second term to the second coupon payment and so on.
- principleSum
- The principle sum of the bond which will be repaid at maturity.
- maturityDate
- The date when the bond matures.
- businessCalendarName
- The name of one of the implemented business calendars, "London" by default.
Return Value
The price of the bond.
See Also
DurationConvexity Class | WebCab.COM.Finance.Bonds Namespace