Compute the yield spread Spread = y_bond − y_bench between a bond yield and a benchmark yield for relative value and credit risk assessment.
输入债券收益率与基准收益率,求利差。
| Item | Formula | Source / Standard |
|---|---|---|
| Yield spread | Bond yield minus benchmark yield | yield spread |
| Credit spread | Difference by credit rating at the same maturity | credit spread |
| Term spread | Long yield minus short yield | term spread |