private void InsertExchangeDataIfNotExists(IExchangeStaticDataModel exchangeStaticDataModel)
 {
     _logger.Error($"HistoricDataGrabTask: Inserting exchange data if not exists for exchange: {exchangeStaticDataModel.ExchangeName}");
     if (!_persistenceManager.DoesExchangeExist(exchangeStaticDataModel))
     {
         _persistenceManager.InsertExchange(exchangeStaticDataModel);
     }
 }
 private void InsertExchangeDataIfNotExists(IExchangeStaticDataModel exchangeStaticDataModel)
 {
     try
     {
         _logger.Information($"FileBasedDataGrabTask: Inserting exchange data if not exists for exchange: {exchangeStaticDataModel.ExchangeName}");
         if (!_persistenceManager.DoesExchangeExist(exchangeStaticDataModel))
         {
             _persistenceManager.InsertExchange(exchangeStaticDataModel);
         }
     }
     catch(Exception exception)
     {
         _logger.Error($"FileBasedDataGrabTask: Error processing exchange data for exchange: {exchangeStaticDataModel.ExchangeName}");
         _logger.Error(exception.ToString());
     }
 }