ExternalIdBundle externalIdBundle, String dataSource, String dataProvider, String dataField,
LocalDateRange dateRange, Integer maxPoints) {
s_logger.info("Getting HistoricalTimeSeries for security {}", externalIdBundle);
HistoricalTimeSeriesProviderGetRequest request = HistoricalTimeSeriesProviderGetRequest.createGet(externalIdBundle, dataSource, dataProvider, dataField, dateRange);
request.setMaxPoints(maxPoints);
HistoricalTimeSeriesProviderGetResult result = _provider.getHistoricalTimeSeries(request);
LocalDateDoubleTimeSeries timeSeries = result.getResultMap().get(externalIdBundle);
if (timeSeries == null) {
s_logger.info("Unable to get HistoricalTimeSeries for {}", externalIdBundle);
return null;