def __calculate_current_value(self, asset_class: AssetClass):
<EOL>if asset_class.stocks:<EOL><INDENT>stocks_sum = Decimal(<NUM_LIT:0>)<EOL>for stock in asset_class.stocks:<EOL><INDENT>stocks_sum += stock.value_in_base_currency<EOL><DEDENT>asset_class.curr_value = stocks_sum<EOL><DEDENT>if asset_class.classes:<EOL><INDENT>for child in asset_class.classes:<EOL><INDENT>self.__calculate_current_value(child)<EOL>asset_class.curr_value += child.curr_value<EOL><DEDENT><DEDENT>
Calculate totals for asset class by adding all the children values