I am keeping track of my (stock) portfolio in Google Sheets, as follows:
category subcategory company amount -----------------------------------------