This commit is contained in:
dsyoon
2023-02-08 00:26:55 +09:00
parent d345866aff
commit 3e8ab4bf6d
2 changed files with 4 additions and 0 deletions

View File

@@ -107,6 +107,8 @@ class HTS_etf (HTS):
for stock in stocks:
time.sleep(0.1)
# 데이터를 가지고 온다.
result = self.getRealTime(stock['stock_code'], today, LAST_DATA[stock['stock_code']])

View File

@@ -113,6 +113,8 @@ class HTS_Stocks (HTS):
if THIS_TIME < datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') or datetime.strptime(today + " 151500", '%Y%m%d %H%M%S') < THIS_TIME:
break
time.sleep(0.1)
stock_code = item[0]
stock_name = item[1]
if ((stock_name.find('스팩') >= 0 or