From bd18f81851635e8f09c2bf4bb60f2f46f505f5d1 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Wed, 13 Oct 2021 21:43:00 +0900 Subject: [PATCH] init --- hts/HTS.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hts/HTS.py b/hts/HTS.py index a21c557..78c6a5c 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -1067,7 +1067,7 @@ class HTS: self.cancelOrderList() # 현재까지 매입금액이 7백만원 이하일 때만 매수를 한다. self.requestOrder("2", stock_code, BUY_COUNT , bs_buy_price) - print("BUY", second, bs_buy_price) + print("BUY", second, BUY_COUNT, bs_buy_price) if bs_sell_price > 0: # 매도 가격을 가져온다. @@ -1075,6 +1075,7 @@ class HTS: # 분석되 가격으로 매도 요청한다. if selling_count != 0 and selling_price != 0: self.requestOrder("1", stock_code, selling_count, selling_price) + print("SELL", second, selling_count, selling_price) timecheck[second] = True @@ -1086,6 +1087,7 @@ class HTS: # 분석되 가격으로 매도 요청한다. if selling_count != 0 and selling_price !=0: self.requestOrder("1", stock_code, selling_count, selling_price) + print("SELL", second, selling_count, selling_price) break time.sleep(0.9)