- 임시 커밋

This commit is contained in:
2017-02-08 16:26:29 +09:00
parent 152e6af4e8
commit 31791b2dd7
8 changed files with 260 additions and 17 deletions

View File

@@ -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));
}