class PortofolioService {

	public Portofolio createPortofolio(String login, String baseCurrencyCode, int baseCurrencyAmount) {
		UserEntity ue = userRepo.findByUsername(login);
		SymbolEntity se = symbolRepo.findById(baseCurrencyCode).get();

		// FIXME add checks

		PortofolioEntity pe = new PortofolioEntity(ue, se, BigDecimal.valueOf(baseCurrencyAmount));

		portofolioRepo.save(pe);

		return getPortofolio(login);
	}

}