Calculate the asset swap spread - the spread over LIBOR/SOFR that makes an asset swap structure (buying a bond and entering a fixed-for-floating swap) break-even. The ASW spread isolates the credit risk component by removing interest rate risk through the swap. It represents the pure credit spread and is widely used for relative value analysis, credit trading, and comparing bonds with different coupons and maturities. More accurate than nominal spread as it properly accounts for the term structure.
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Current market price of the bond
98
Annual coupon rate as a decimal
0.05
Time to maturity in years
5
Array of zero rates for the discount curve
[0.03, 0.032, 0.034, 0.036, 0.038, 0.04]Array of times for the discount curve in years
[0.5, 1, 2, 3, 4, 5]Face value of the bond
100
Coupon payment frequency per year
1, 2, 4, 12 2