init
This commit is contained in:
@@ -163,12 +163,14 @@ class HTS:
|
||||
objCpCybos = win32com.client.Dispatch("CpUtil.CpCybos")
|
||||
bConnect = objCpCybos.IsConnect
|
||||
if (bConnect == 0):
|
||||
slackBot.sendMsg("PLUS가 정상적으로 연결되지 않음. ")
|
||||
print("PLUS가 정상적으로 연결되지 않음. ")
|
||||
exit()
|
||||
|
||||
objTrade = win32com.client.Dispatch("CpTrade.CpTdUtil")
|
||||
initCheck = objTrade.TradeInit(0)
|
||||
if (initCheck != 0):
|
||||
slackBot.sendMsg("주문 초기화 실패")
|
||||
print("주문 초기화 실패")
|
||||
exit()
|
||||
|
||||
@@ -200,7 +202,7 @@ class HTS:
|
||||
rqRet = objStockOrder.GetDibMsg1()
|
||||
print("통신상태", rqStatus, rqRet)
|
||||
if rqStatus != 0:
|
||||
slackBot.post_msg_to_slack("통신상태: "+ str(rqStatus)+' ('+str(rqRet)+')')
|
||||
slackBot.sendMsg("통신상태: "+ str(rqStatus)+' ('+str(rqRet)+')')
|
||||
return None
|
||||
|
||||
orderNum = objStockOrder.GetHeaderValue(0)
|
||||
|
||||
Reference in New Issue
Block a user