- 임시 커밋
This commit is contained in:
@@ -66,7 +66,7 @@ namespace NewsCrawler
|
||||
|
||||
if(iType == 1 || iType == 2)
|
||||
{
|
||||
m_Listener.InsertItem(strContents, "", strCode,
|
||||
m_Listener.InsertItem(strContents, strName, strCode,
|
||||
DateTime.ParseExact(iTime.ToString("0000"), "HHmm", CultureInfo.CurrentCulture),
|
||||
DateTime.Now,
|
||||
"", "CYBOS", 0, false);
|
||||
@@ -173,6 +173,7 @@ namespace NewsCrawler
|
||||
try
|
||||
{
|
||||
int iCurPrice = GetCurPrice(Code);
|
||||
iCurPrice = (int)(iCurPrice*1.015);
|
||||
int iCount = iMaxPrice/iCurPrice;
|
||||
|
||||
m_CP0311.SetInputValue(0, 2);
|
||||
@@ -180,10 +181,10 @@ namespace NewsCrawler
|
||||
m_CP0311.SetInputValue(2, Config.GetSubAccount());
|
||||
m_CP0311.SetInputValue(3, Code.m_strCode);
|
||||
m_CP0311.SetInputValue(4, iCount);
|
||||
m_CP0311.SetInputValue(5, 0);
|
||||
m_CP0311.SetInputValue(7, "0");
|
||||
m_CP0311.SetInputValue(8, "03");
|
||||
m_CP0311.BlockRequest2(0);
|
||||
m_CP0311.SetInputValue(5, iCurPrice);
|
||||
m_CP0311.SetInputValue(7, "01");
|
||||
m_CP0311.SetInputValue(8, "01");
|
||||
m_CP0311.BlockRequest2(1);
|
||||
|
||||
Util.Log(Util.LOG_TYPE.BUY, string.Format("code:{0} {1}주 현재가 {2}원, 시장가 매수", Code.ToString(), iCount, iCurPrice));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user