def __get_stock_row(self, stock: Stock, depth: int) -> str:
assert isinstance(stock, Stock)<EOL>view_model = AssetAllocationViewModel()<EOL>view_model.depth = depth<EOL>view_model.name = stock.symbol<EOL>view_model.curr_allocation = stock.curr_alloc<EOL>view_model.curr_value = stock.value_in_base_currency<EOL>view_model.curr_value_own_currency = stock.value<EOL>view_model.own_currency = stock.currency<EOL>return view_model<EOL>
formats stock row