fi_credit-spread
Calculate Z-spread and implied default probability from a corporate bond price using the risk-free yield curve.
Instructions
Credit spread and Z-spread from bond price vs risk-free curve.
Use when computing Z-spread and implied default probability from a corporate bond price. Provide bond price, coupon, maturity, and risk-free curve. Returns: Z-spread, option-adjusted spread, implied default probability, and loss-given-default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bond_price | Yes | Observed bond price | |
| face_value | No | Face value of the bond | |
| coupon_rate | Yes | Annual coupon rate | |
| maturity_years | Yes | Years to maturity | |
| risk_free_curve | Yes | Risk-free yield curve points | |
| payment_frequency | No | Coupon payments per year |