class YahooStockProvider implements LatestRateProvider, HistoricalRateProvider {

	@Override
	public List<Quote> getHistoricalRates() throws IOException {
		List<Quote> quotes = new ArrayList<>();

		List<Pair> pairs = pairService.getAllFromProvider("YAHOO");

		for (Pair pair : pairs) {
			quotes.addAll(getHistoricalRates(pair.getSymbol()));
		}

		return quotes;
	}

}