code: def get_asset_allocation(self):
          
          # load from db
          # TODO set the base currency
          base_currency = "EUR"
  
          loader = AssetAllocationLoader(base_currency=base_currency)
          loader.logger = self.logger
          model = loader.load_tree_from_db()
  
          model.validate()
  
          # securities
          # read stock links
          loader.load_stock_links()
          # read stock quantities from GnuCash
          loader.load_stock_quantity()
          # Load cash balances
          loader.load_cash_balances()
          # loader.session
          # read prices from Prices database
          loader.load_stock_prices()
          # recalculate stock values into base currency
          loader.recalculate_stock_values_into_base()
          # calculate
          model.calculate_current_value()
          model.calculate_set_values()
          model.calculate_current_allocation()
  
          # return the model for display
          return model
docs: Creates and populates the Asset Allocation model. The main function of the app.