code: public List<HistoricalQuote> getHistory(Calendar from, Calendar to, Interval interval) throws IOException {
          if(YahooFinance.HISTQUOTES2_ENABLED.equalsIgnoreCase("true")) {
              HistQuotes2Request hist = new HistQuotes2Request(this.symbol, from, to, interval);
              this.setHistory(hist.getResult());
          } else {
              HistQuotesRequest hist = new HistQuotesRequest(this.symbol, from, to, interval);
              this.setHistory(hist.getResult());
          }
          return this.history;
      }
docs: Requests the historical quotes for this stock with the following characteristics.
  <ul>
  <li> from: specified value
  <li> to: specified value
  <li> interval: specified value
  </ul>
  
  @param from          start date of the historical data
  @param to            end date of the historical data
  @param interval      the interval of the historical data
  @return              a list of historical quotes from this stock
  @throws java.io.IOException when there's a connection problem
  @see                 #getHistory()