This commit is contained in:
dosang.yoon
2022-08-10 13:09:46 +09:00
parent b95b03baa1
commit 6b5e21ada8
3 changed files with 32 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ class HTS_252670 (HTS):
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
# 3시 까지만 매수를 시도한다.
"""
if THIS_TIME.strftime('%S') in ("06", "16", "26", "36", "46", "56"):
# 데이터를 가지고 온다.
result = self.getRealTime(self.stock_code, today, LAST_DATA)
@@ -101,6 +102,7 @@ class HTS_252670 (HTS):
# 10초마다 체크하여 체결된 내역이 있으면 60원 높게 매도를 주문한다.
self.getDefaultSell(THIS_TIME, self.stock_code, final_price)
"""
if THIS_TIME.strftime('%S') == "03":
# 매분 3초마다 실행한다.