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

@@ -93,6 +93,7 @@ class HTS_122630 (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 ("09", "19", "29", "39", "49", "59"):
# 데이터를 가지고 온다.
result = self.getRealTime(self.stock_code, today, LAST_DATA)
@@ -100,6 +101,7 @@ class HTS_122630 (HTS):
# 10초마다 체크하여 체결된 내역이 있으면 60원 높게 매도를 주문한다.
self.getDefaultSell(THIS_TIME, self.stock_code, final_price)
"""
if THIS_TIME.strftime('%S') == "05":
# 매분 5초마다 실행한다.