Bond Price
bond-pricePrice of a coupon bond given a yield: present value of the coupons plus the face at maturity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Years to maturity. | |
| yieldPct | Yes | Annual yield in percent. | |
| faceValue | Yes | Face (par) value. | |
| couponRatePct | Yes | Annual coupon rate in percent of face. | |
| periodsPerYear | No | Coupon periods per year (default 2). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Bond price (null if degenerate). |