Automating Portfolio Accounting Transactions