Calculate the Z-spread (Zero-volatility spread) - the constant spread that, when added to the spot rate curve, makes the present value of a bond’s cash flows equal its market price. Unlike G-spread or I-spread which compare yields, Z-spread properly accounts for the term structure of interest rates by discounting each cash flow at the appropriate spot rate plus spread. This provides a more accurate measure of credit risk. Essential for relative value analysis and credit trading.
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Current market price of the bond
98.5
Array of bond cash flows (coupons and principal)
[2.5, 2.5, 2.5, 2.5, 102.5]Array of payment times in years
[0.5, 1, 1.5, 2, 2.5]Array of zero rates (spot rates) at each payment time as decimals
[0.03, 0.032, 0.034, 0.036, 0.038]