get historical data from the past to the present yahoo finance api
Calendar from = Calendar.getInstance();
Calendar to = Calendar.getInstance();
from.add(Calendar.YEAR, -5); // from 5 years ago
Stock google = YahooFinance.get("GOOG", from, to, Interval.WEEKLY);