def get_asset_allocation(self):
<EOL>base_currency = "<STR_LIT>"<EOL>loader = AssetAllocationLoader(base_currency=base_currency)<EOL>loader.logger = self.logger<EOL>model = loader.load_tree_from_db()<EOL>model.validate()<EOL>loader.load_stock_links()<EOL>loader.load_stock_quantity()<EOL>loader.load_cash_balances()<EOL>loader.load_stock_prices()<EOL>loader.recalculate_stock_values_into_base()<EOL>model.calculate_current_value()<EOL>model.calculate_set_values()<EOL>model.calculate_current_allocation()<EOL>return model<EOL>
Creates and populates the Asset Allocation model. The main function of the app.