public static void CheckFirstSeenDates(Dictionary <string, Market> markets, ref Dictionary <string, MarketInfo> marketInfos, PTMagicConfiguration systemConfiguration, LogHelper log) { log.DoLogInfo("BinanceFutures - Checking first seen dates for " + markets.Count + " markets. This may take a while..."); int marketsChecked = 0; foreach (string key in markets.Keys) { // Save market info MarketInfo marketInfo = null; if (marketInfos.ContainsKey(key)) { marketInfo = marketInfos[key]; } if (marketInfo == null) { marketInfo = new MarketInfo(); marketInfo.Name = key; marketInfos.Add(key, marketInfo); marketInfo.FirstSeen = BinanceFutures.GetFirstSeenDate(key, systemConfiguration, log); } else { if (marketInfo.FirstSeen == Constants.confMinDate) { marketInfo.FirstSeen = BinanceFutures.GetFirstSeenDate(key, systemConfiguration, log); } } marketInfo.LastSeen = DateTime.UtcNow; marketsChecked++; if ((marketsChecked % 20) == 0) { log.DoLogInfo("BinanceFutures - Yes, I am still checking first seen dates... " + marketsChecked + "/" + markets.Count + " markets done..."); } } }