WebCab Bonds Web Services for Delphi

DurationConvexity.PriceOfBond Method 

This method evaluates the price of a bond via the relationship between its yield and cash flows.

public double PriceOfBond(
   double yield,
   double[] coupons,
   DateTime evaluationDate,
   DateTime[] dateOfCoupons,
   double principleSum,
   DateTime maturityDate,
   string businessCalendarName
);

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.

See Also

DurationConvexity Class | BasicBonds Namespace