code: public static Stock get(String symbol, Calendar from, Calendar to, Interval interval) throws IOException {
          Map<String, Stock> result = YahooFinance.getQuotes(symbol, from, to, interval);
          return result.get(symbol.toUpperCase());
      }
docs: Sends a request with the historical quotes included
  starting from the specified {@link Calendar} date
  until the specified Calendar date (to)
  at the specified interval.
  Returns null if the data can't be retrieved from Yahoo Finance.
  
  @param symbol        the symbol of the stock for which you want to retrieve information
  @param from          start date of the historical data
  @param to            end date of the historical data
  @param interval      the interval of the included historical data
  @return              a {@link Stock} object containing the requested information
  @throws java.io.IOException when there's a connection problem