Cleanup
This commit is contained in:
28
Program.cs
28
Program.cs
@@ -24,9 +24,6 @@ using Axiom.Interpreter;
|
||||
using System.Data;
|
||||
using MarketData.Generator.MovingAverage;
|
||||
using MarketData.Generator.MGSHMomentum;
|
||||
using MarketData.Security;
|
||||
using MarketData.MarketDataModel.User;
|
||||
using MarketData.Extensions;
|
||||
|
||||
namespace MarketData
|
||||
{
|
||||
@@ -998,6 +995,26 @@ namespace MarketData
|
||||
|
||||
//UserDA.AddUser(user);
|
||||
|
||||
// Put this in Daily Cron
|
||||
// Check that we have pricing for all trades and dates held
|
||||
//DateTime selectedDate = DateTime.Parse("03-27-2025");
|
||||
//DateTime historicalDate = DateTime.Parse("01-02-2024");
|
||||
//PortfolioTrades portfolioTrades = PortfolioDA.GetTrades();
|
||||
//foreach(PortfolioTrade portfolioTrade in portfolioTrades)
|
||||
//{
|
||||
// DateTime tradeDate = portfolioTrade.TradeDate;
|
||||
// DateTime sellDate = portfolioTrade.SellDate;
|
||||
// if(Utility.IsEpoch(sellDate))sellDate = selectedDate;
|
||||
// DateGenerator dateGenerator = new DateGenerator();
|
||||
// List<DateTime> historicalDates = dateGenerator.GenerateHistoricalDates(sellDate, tradeDate);
|
||||
// foreach(DateTime date in historicalDates)
|
||||
// {
|
||||
// if(null == GBPriceCache.GetInstance().GetPrice(portfolioTrade.Symbol, date))
|
||||
// {
|
||||
// MDTrace.WriteLine(LogLevel.DEBUG,String.Format("No price for {0} on {1}",portfolioTrade.Symbol,date.ToShortDateString()));
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
static int Main(string[] args)
|
||||
{
|
||||
@@ -1009,6 +1026,9 @@ namespace MarketData
|
||||
Trace.Listeners.Add(new TextWriterTraceListener(strLogFile));
|
||||
DateTime currentDate=DateTime.Now;
|
||||
|
||||
// Price price = MarketDataHelper.GetLatestPriceBigCharts("NVDA");
|
||||
//List<CashflowStatement> cashflowStatements = MarketDataHelper.GetCashflowStatement("AAPL",CashflowStatement.PeriodType.Annual);
|
||||
|
||||
DateTime maxHolidayDate =HolidayDA.GetMaxHolidayDate();
|
||||
if(currentDate>maxHolidayDate)
|
||||
{
|
||||
@@ -2100,7 +2120,7 @@ namespace MarketData
|
||||
String result=Console.ReadLine();
|
||||
if(null==result||!(result.ToUpper().Equals("Y")||result.ToUpper().Equals("YES")))return;
|
||||
}
|
||||
Utility.RemoveLogFiles();
|
||||
Utility.RemoveLogFilesExcept("marketdata.log");
|
||||
int STAGE_1=0,STAGE_2=1,STAGE_3=2,STAGE_4=3,STAGE_5=4,STAGE_6=5,STAGE_7=6,STAGE_8=7,STAGE_9=8,STAGE_10=9,STAGE_11=10,STAGE_12=11,STAGE_FINAL=12;
|
||||
DeletePriceWatchList("valuations",startDate.ToShortDateString());
|
||||
DeletePriceWatchList("Momentum",startDate.ToShortDateString());
|
||||
|
||||
Reference in New Issue
Block a user