What an exchange is, in legal terms.
An exchange is a contract by which two parties trade assets with each other — in this case, properties — with or without a financial balancing payment (the so-called tornas). It is provided for in the Portuguese Civil Code and, from a notarial and tax point of view, receives its own treatment — more favourable than two independent transactions in many scenarios.

