A swap is an agreement between two parties to exchange a series of future cash flows. Swaps are financial agreements to exchange cash flows. Swaps can be based on interest rates, stock indices, foreign currency exchange rates and even commodities prices. Let's walk through an example of a plain vanilla swap, which is simply an interest rate swap in which one party pays a fixed interest rate and the other pays a floating interest rate.