This commit is contained in:
dsyoon
2023-02-18 10:46:20 +09:00
parent 147951f07c
commit f72f1728e3
2 changed files with 8 additions and 4 deletions

View File

@@ -134,8 +134,12 @@ class HTS_etf (HTS):
time.sleep(0.1)
try:
# 데이터를 가지고 온다.
result = self.getRealTime(stock['stock_code'], today, LAST_DATA[stock['stock_code']])
except:
print("#ERROR:", stock['stock_code'], stock['stock_name'])
continue
result_5 = self.makeTickData(result, mins=5)
result_30 = self.makeTickData(result, mins=30)

View File

@@ -657,7 +657,7 @@ class HTS:
bConnect = objCpCybos.IsConnect
if (bConnect == 0):
print("PLUS가 정상적으로 연결되지 않음. ")
exit()
return result
# 차트 객체 구하기
objStockChart = win32com.client.Dispatch("CpSysDib.StockChart")
@@ -721,7 +721,7 @@ class HTS:
bConnect = objCpCybos.IsConnect
if (bConnect == 0):
print("PLUS가 정상적으로 연결되지 않음. ")
exit()
return stock
# 차트 객체 구하기
objStockChart = win32com.client.Dispatch("CpSysDib.StockChart")