init
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user