매수 구분 체크
simulation input 생성
This commit is contained in:
@@ -211,7 +211,7 @@ namespace AutoSellerNS
|
||||
var tokens = strLine.Split('\t');
|
||||
|
||||
var strDate = tokens[0];
|
||||
var strNewTime = tokens[1];
|
||||
var strNewsTime = tokens[1];
|
||||
var strSimulationTime = tokens[2];
|
||||
var strCodeName = tokens[3];
|
||||
strCodeName = strCodeName.Trim();
|
||||
@@ -1000,6 +1000,19 @@ namespace AutoSellerNS
|
||||
// }
|
||||
});
|
||||
}
|
||||
|
||||
public static void InsertSimulationLog(string strCode, string strCodeName, int iPrice)
|
||||
{
|
||||
DateTime time = DateTime.Now;
|
||||
string strPath = Util.GetSimulationPath() + "/0-input-" + time.Date.ToString("yyyy-MM-dd") + ".txt";
|
||||
File.AppendAllText(strPath, string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}",
|
||||
time.ToString("yyyy-MM-dd"),
|
||||
time.ToString("hh:mm:ss"),
|
||||
time.ToString("hh:mm:ss"),
|
||||
strCodeName,
|
||||
strCode,
|
||||
iPrice), new UTF8Encoding(true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user