From 28a3e26421269f9a95d32fed5018fac3ad0fd853 Mon Sep 17 00:00:00 2001 From: dosangyoon Date: Mon, 5 Sep 2022 10:36:13 +0900 Subject: [PATCH] init --- HTS_122630.py | 4 ++-- HTS_252670.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HTS_122630.py b/HTS_122630.py index ded9219..8ee02e2 100644 --- a/HTS_122630.py +++ b/HTS_122630.py @@ -125,7 +125,7 @@ class HTS_122630 (HTS): self.cancelOrderList(orderListToCancel) # 매도 한다. - self.getSellingPrice(THIS_TIME, self.stock_code, final_price, diff=0) + self.getSellingPrice(THIS_TIME, self.stock_code, final_price, diff=5) # 로그 출력 @@ -151,7 +151,7 @@ class HTS_122630 (HTS): result = self.getRealTime(self.stock_code, today, LAST_DATA) final_price = result["close"][len(result["close"]) - 1] - self.getSellingPrice(THIS_TIME, self.stock_code, final_price=0) + self.getSellingPrice(THIS_TIME, self.stock_code, final_price=5) final_sell_check = True diff --git a/HTS_252670.py b/HTS_252670.py index 1f5829a..e0b0244 100644 --- a/HTS_252670.py +++ b/HTS_252670.py @@ -127,7 +127,7 @@ class HTS_252670 (HTS): self.cancelOrderList(orderListToCancel) # 매도한다. - self.getSellingPrice(THIS_TIME, self.stock_code, final_price, diff=0) + self.getSellingPrice(THIS_TIME, self.stock_code, final_price, diff=5) # 로그 출력 print("TIMECHECK: %s, price: %d, avg3: %.2f, avg5: %.2f, avg10: %.2f, slow_k: %.2f, open: %d, high: %d, low: %d" % @@ -151,7 +151,7 @@ class HTS_252670 (HTS): result = self.getRealTime(self.stock_code, today, LAST_DATA) final_price = result["close"][len(result["close"]) - 1] - self.getSellingPrice(THIS_TIME, self.stock_code, final_price=0) + self.getSellingPrice(THIS_TIME, self.stock_code, final_price=5) final_sell_check = True