Code cleanup.
This commit is contained in:
32
Program.cs
32
Program.cs
@@ -982,26 +982,28 @@ namespace MarketData
|
||||
Trace.Listeners.Add(new TextWriterTraceListener(strLogFile));
|
||||
DateTime currentDate=DateTime.Now;
|
||||
|
||||
//int hitCount =0;
|
||||
|
||||
// CompanyProfile c1 = MarketDataHelper.GetCompanyProfile("AAME");
|
||||
|
||||
|
||||
CompanyProfiles companyProfiles = CompanyProfileDA.GetCompanyProfiles();
|
||||
List<String> symbols = companyProfiles.Select(x => x.Symbol).ToList();
|
||||
foreach(String symbol in symbols)
|
||||
{
|
||||
CompanyProfile companyProfile = MarketDataHelper.GetCompanyProfile(symbol);
|
||||
if (null != companyProfile) {
|
||||
MDTrace.WriteLine(LogLevel.DEBUG, $"Symbol:{symbol} Sector:{companyProfile.Sector} Industry:{companyProfile.Industry} Description:{companyProfile.Description}");
|
||||
MDTrace.WriteLine(LogLevel.DEBUG, "");
|
||||
}
|
||||
Thread.Sleep(2000);
|
||||
}
|
||||
//CompanyProfiles companyProfiles = CompanyProfileDA.GetCompanyProfiles();
|
||||
//List<String> symbols = companyProfiles.Select(x => x.Symbol).Where(x => !x.StartsWith("^")).ToList();
|
||||
//foreach (String symbol in symbols)
|
||||
//{
|
||||
// CompanyProfile companyProfile = MarketDataHelper.GetCompanyProfileYahoo(symbol);
|
||||
// if (null != companyProfile)
|
||||
// {
|
||||
// MDTrace.WriteLine(LogLevel.DEBUG, $"Hits: {hitCount} Symbol:{symbol} Sector:{companyProfile.Sector} Industry:{companyProfile.Industry} Description:{companyProfile.Description}");
|
||||
// MDTrace.WriteLine(LogLevel.DEBUG, "");
|
||||
// hitCount++;
|
||||
// }
|
||||
// Thread.Sleep(1000);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
// CompanyProfile companyProfile = MarketDataHelper.GetCompanyProfile("MOD");
|
||||
|
||||
|
||||
// CompanyProfile companyProfile = MarketDataHelper.GetCompanyProfile("MOD");
|
||||
//PortfolioTrades portfolioTrades = PortfolioDA.GetOpenTrades();
|
||||
//List<String> symbols = portfolioTrades.Select(x => x.Symbol).Distinct().ToList();
|
||||
//for (int rindex=0; rindex<symbols.Count; rindex++)
|
||||
|
||||
Reference in New Issue
Block a user