A derivative contract in which two parties exchange financial instruments. These instruments can include almost anything, but usually involve cash flows based on a proposed principal amount that both traders agree to.