code: def load_stock_prices(self):
          
          from pricedb import SecuritySymbol
  
          info = StocksInfo(self.config)
          for item in self.model.stocks:
              symbol = SecuritySymbol("", "")
              symbol.parse(item.symbol)
  
              price: PriceModel = info.load_latest_price(symbol)
              if not price:
                  # Use a dummy price of 1, effectively keeping the original amount.
                  price = PriceModel()
                  price.currency = self.config.get(ConfigKeys.default_currency)
                  price.value = Decimal(1)
              item.price = price.value
              if isinstance(item, Stock):
                  item.currency = price.currency
                  # Do not set currency for Cash balance records.
          info.close_databases()
docs: Load latest prices for securities