code: def __get_stock_row(self, stock: Stock, depth: int) -> str:
          
          assert isinstance(stock, Stock)
  
          view_model = AssetAllocationViewModel()
  
          view_model.depth = depth
  
          # Symbol
          view_model.name = stock.symbol
  
          # Current allocation
          view_model.curr_allocation = stock.curr_alloc
  
          # Value in base currency
          view_model.curr_value = stock.value_in_base_currency
  
          # Value in security's currency.
          view_model.curr_value_own_currency = stock.value
          view_model.own_currency = stock.currency
  
          return view_model
docs: formats stock row