Swap is a derivative contract that two entities lend to each other on different conditions, such as different currencies or interest rate.