This commit is contained in:
dsyoon
2023-10-12 23:32:51 +09:00
parent 4fb39966d2
commit 4026cb5de8
3 changed files with 3 additions and 7 deletions

View File

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