class RateService {

	public Instant getOldestRateDate(String fromcur, String tocur) {
		HistoricalRate r = historicalRateRepository.findFirstByFromcurCodeAndTocurCode(fromcur, tocur, SORT_ASC_DATE);
		return (r == null) ? null : r.getDate();
	}

}