Code cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user