Code cleanup

This commit is contained in:
2025-10-17 20:16:44 -04:00
parent 234f2fcb1f
commit cde53e5b94
2 changed files with 5 additions and 5 deletions

View File

@@ -557,11 +557,11 @@ namespace MarketData.Services
// Here is the start of the real workers
ThreadPool.QueueUserWorkItem(delegate
{
UpdatePricesYahooSweep(startDate); // The sweep variation of the method is intended to be used after the BigCharts update because the sweep will take pricing_source into consideration when fetching prices.
UpdatePricesRobinhood(startDate); //
UpdatePricesBarChartSweep(startDate); // barchart. This sweep will pull any prices we failed to retrieve from BigCharts
UpdatePricesYahooSweep(startDate); // This was a sweep but now it is the main price feed since the BigCharts feed issue. Robinhood runs to fill the gaps anbd then BarChart
UpdatePricesRobinhood(startDate); // This the new Robinhood price feed. It will only pull current day prices for items that have not been pulled from above feed.
UpdatePricesBarChartSweep(startDate); // barchart. This sweep will pull any prices we failed to retrieve from Yahoo and Robinhood.
resetEvents[STAGE_1].Set();
SMSClient.SendSMSEmail("UPDATEDAILY2 STAGE_1 UPDATEPRICESBIGCHARTS/YAHOO done.", smsUserName, smsRecipients, smsSMTPAddress, smsUserName, smsPassword);
SMSClient.SendSMSEmail("UPDATEDAILY2 STAGE_1 UPDATEPRICES YAHOO/ROBINHOOD/BARCHART done.", smsUserName, smsRecipients, smsSMTPAddress, smsUserName, smsPassword);
MDTrace.WriteLine(LogLevel.DEBUG,$"STAGE_1 complete.");
});
resetEvents[STAGE_1].WaitOne(); // wait for pricing to finish

View File

@@ -5107,7 +5107,7 @@ namespace MarketData.Helper
if (null == price) return null;
if (!price.Date.Date.Equals(startDate.Date))
{
MDTrace.WriteLine(LogLevel.DEBUG, $"Error, the price retrieved from Robinhood for : {symbol} is dated {price.Date.Date.ToShortDateString()} , expected {startDate.Date.ToShortDateString()}.");
MDTrace.WriteLine(LogLevel.DEBUG, $"Error, the price retrieved from Robinhood for : {symbol} is dated {price.Date.Date.ToShortDateString()}, expected {startDate.Date.ToShortDateString()}.");
return null;
}
return price;