Interest rate swap (source code)

= Interest rate swap
{wiki}

An agreement to exchange interest cash flows according to fixed and floating schedules. For unit accrual periods and unit notional, floating-minus-fixed payments are $r_t-s$ at the specified dates. <Zero-coupon bonds> value the fixed leg and a rolling floating leg supplies the telescoping floating-leg value.