This commit is contained in:
dosangyoon
2021-10-27 08:32:22 +09:00
parent c87e5a45fd
commit ed581cd90c
3 changed files with 666 additions and 3 deletions

View File

@@ -598,6 +598,7 @@ class HTS_252670:
# 로그 출력
print("BUY", THIS_TIME.strftime('%Y%m%d %H%M%S'), BUY_COUNT, bs_buy_price, len(orderListToCancel), len(ORDER_LIST))
"""
if bs_sell_price > 0:
# 미체결 기록을 가져온다.
ORDER_LIST = self.requestOrderList()
@@ -615,11 +616,11 @@ class HTS_252670:
# 로그 출력
print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), selling_count, selling_price, len(orderListToCancel), len(ORDER_LIST))
"""
# 로그 출력
print("TIMECHECK", THIS_TIME, final_price, data["low"][data_size-1], data["slow_k"][data_size-1], data["slow_d"][data_size-1])
timecheck[THIS_TIME] = True
"""
if datetime.strptime(GIVEN_DAY + " 151530", '%Y%m%d %H%M%S') < THIS_TIME:
####
# 손해 보지 않는 가격에 매도한다.
@@ -639,6 +640,7 @@ class HTS_252670:
print("SELL", THIS_TIME, selling_count, selling_price)
break
"""
time.sleep(0.9)
THIS_TIME = datetime.now()