A transaction updates the quantity/cost of one or more holdings in a portfolio. The precise economic impact is controlled by a transaction type.