class PairService {

	public Pair create(String code, String name, String source, String target, String exchange, String provider) {
		PairEntity pe = new PairEntity(code, name, new SymbolEntity(source), new SymbolEntity(target), exchange, provider);
		pe = pairRepo.save(pe);
		return pairMapper.mapToPair(pe);
	}

}