A CFD, or Contract for Difference, is an agreement between two parties to exchange the difference between the opening price and closing price of a contract.