init
This commit is contained in:
@@ -62,7 +62,7 @@ class HTS_252670_DAILY (HTS):
|
||||
print ("START...")
|
||||
THIS_TIME = datetime.now()
|
||||
final_sell_check = False
|
||||
LAST_DATA = self.dailyStatus.getLastData(self.stock_code, today)
|
||||
LAST_DATA = self.dailyStatus.getLastData_realtime(self.stock_code, today)
|
||||
|
||||
while datetime.strptime(today + " 070000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'):
|
||||
|
||||
@@ -72,7 +72,7 @@ class HTS_252670_DAILY (HTS):
|
||||
if THIS_TIME < datetime.strptime(today + " 145000", '%Y%m%d %H%M%S'):
|
||||
if THIS_TIME.strftime('%S') in ("06", "16", "26", "36", "46", "56"):
|
||||
# 데이터를 가지고 온다.
|
||||
result = self.getRealTime(self.stock_code, today, LAST_DATA)
|
||||
result = self.getClosePrice_realtime(self.stock_code, today)
|
||||
final_price = result["close"][len(result["close"])-1]
|
||||
|
||||
# 10초마다 체크하여 체결된 내역이 있으면 50원 높게 매도를 주문한다.
|
||||
|
||||
Reference in New Issue
Block a user