계좌 선택 기능 추가

This commit is contained in:
2016-12-20 09:16:28 +09:00
parent 034c061a1b
commit a93faf9eb5
7 changed files with 156 additions and 29 deletions

View File

@@ -14,7 +14,6 @@ namespace NewsCrawler
DSCBO1Lib.StockMst m_CPStockMst = new DSCBO1Lib.StockMst();
CPTRADELib.CpTd0311 m_CP0311 = new CPTRADELib.CpTd0311();
bool m_bInitialized = false;
string m_strAccountNumber;
public CybosHelper()
{
@@ -42,9 +41,11 @@ namespace NewsCrawler
Util.Log(Util.LOG_TYPE.ERROR, "[TradeInit] 취소되었습니다");
break;
}
}
m_strAccountNumber = m_CPUtil.AccountNumber[0];
Util.Log(Util.LOG_TYPE.VERVOSE, string.Format("{0}개의 계좌 중 첫번째 계좌 {1}이 선택되었습니다", m_CPUtil.AccountNumber.Length, m_strAccountNumber));
public string[] GetAccounts()
{
return m_CPUtil.AccountNumber;
}
public int GetLimitRemainCountTrace()
@@ -82,10 +83,12 @@ namespace NewsCrawler
int iCount = iMaxPrice/iCurPrice;
m_CP0311.SetInputValue(0, 2);
m_CP0311.SetInputValue(1, m_strAccountNumber);
m_CP0311.SetInputValue(1, Config.GetAccount());
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);