ArrayList<HistoricalPrice> result = new ArrayList<HistoricalPrice>();
String[] nextLine;
try {
while ((nextLine = reader.readNext()) != null) {
HistoricalPrice hp = new HistoricalPrice();
hp.setTime(DateTime.parse(nextLine[0]));
hp.setSpotPrice(Money.of(CurrencyUnit.USD, new BigDecimal(nextLine[1])));
result.add(hp);
}
} catch (IOException e) {
throw new CoinbaseException("Error parsing csv response");
} finally {