Compute the yield spread Spread = y_bond − y_bench between a bond yield and a benchmark yield for relative value and credit risk assessment.
输入债券收益率与基准收益率,求利差。