private void InsertSecurityEndOfDayData(IEnumerable <IStockDataModel> stockDataModelCollection)
        {
            string symbol = stockDataModelCollection.First().Symbol;

            _logger.Information($"HistoricDataGrabTask: Clearing existing end of day data for: {symbol}");
            _persistenceManager.ClearExistingEndOfDayData(symbol);

            _logger.Information($"HistoricDataGrabTask: Inserting end of day data for: {symbol}");
            _persistenceManager.InsertEndOfDayData(stockDataModelCollection, VendorDetails.YahooFinance);
        }
        private void InsertSecurityEndOfDayData(IEnumerable<IStockDataModel> stockDataModelCollection)
        {
            try
            {
                string symbol = stockDataModelCollection.First().Symbol;

                _logger.Information($"FileBasedDataGrabTask: Clearing existing end of day data for: {symbol}");
                _persistenceManager.ClearExistingEndOfDayData(symbol);

                _logger.Information($"FileBasedDataGrabTask: Inserting end of day data for: {symbol}");
                _persistenceManager.InsertEndOfDayData(stockDataModelCollection, VendorDetails.YahooFinance);
            }
            catch(Exception exception)
            {
                _logger.Error($"FileBasedDataGrabTask: Error retrieving stock data.");
                _logger.Error(exception.ToString());
            }
        }