Credit default swaps transfer defined credit exposure through a contract. Learn premium legs, protection events, recovery, basis risk and settlement.