From 9fc8f2723551b6bd69c38a3daec7c987d01c78fb Mon Sep 17 00:00:00 2001 From: dsyoon Date: Mon, 16 Oct 2023 11:41:11 +0900 Subject: [PATCH] init --- HTS_etf_122630.py | 6 +++--- HTS_etf_233740.py | 6 +++--- HTS_etf_251340.py | 4 ++-- HTS_etf_252670.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/HTS_etf_122630.py b/HTS_etf_122630.py index 5f72604..b5ca18e 100644 --- a/HTS_etf_122630.py +++ b/HTS_etf_122630.py @@ -170,10 +170,10 @@ class HTS_etf(HTS): print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), stock_code, stock_code, bs_sell_price) # 로그 출력 - print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, avg5: %.2f, avg30: %.2f, open: %d, high: %d, low: %d, slow_k: %.2f" % - (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["avg5"][0], data["avg30"][0], data["open"][0], data["high"][0], data["low"][0], data["slow_k"][0])) + print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, high: %d, low: %d, macd: %.2f" % + (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["open"][0], data["high"][0], data["low"][0], data["macd"][0])) - if int(THIS_TIME.strftime("%M")) % 11 == 0: + if int(THIS_TIME.strftime("%M")) % 10 == 0: self.slackBot.post_live_to_slack(stock_code, stock_name) time.sleep(60) diff --git a/HTS_etf_233740.py b/HTS_etf_233740.py index 194dac3..1ae0816 100644 --- a/HTS_etf_233740.py +++ b/HTS_etf_233740.py @@ -170,10 +170,10 @@ class HTS_etf(HTS): print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), stock_code, stock_code, bs_sell_price) # 로그 출력 - print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, avg5: %.2f, avg30: %.2f, open: %d, high: %d, low: %d, slow_k: %.2f" % - (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["avg5"][0], data["avg30"][0], data["open"][0], data["high"][0], data["low"][0], data["slow_k"][0])) + print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, high: %d, low: %d, macd: %.2f" % + (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["open"][0], data["high"][0], data["low"][0], data["macd"][0])) - if int(THIS_TIME.strftime("%M")) % 11 == 0: + if int(THIS_TIME.strftime("%M")) % 10 == 0: self.slackBot.post_live_to_slack(stock_code, stock_name) time.sleep(60) diff --git a/HTS_etf_251340.py b/HTS_etf_251340.py index bbb9d53..e1b41b6 100644 --- a/HTS_etf_251340.py +++ b/HTS_etf_251340.py @@ -171,8 +171,8 @@ class HTS_etf(HTS): print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), stock_code, stock_code, bs_sell_price) # 로그 출력 - print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, avg5: %.2f, avg30: %.2f, open: %d, high: %d, low: %d, slow_k: %.2f" % - (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["avg5"][0], data["avg30"][0], data["open"][0], data["high"][0], data["low"][0], data["slow_k"][0])) + print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, high: %d, low: %d, macd: %.2f" % + (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["open"][0], data["high"][0], data["low"][0], data["macd"][0])) if int(THIS_TIME.strftime("%M")) % 10 == 0: self.slackBot.post_live_to_slack(stock_code, stock_name) diff --git a/HTS_etf_252670.py b/HTS_etf_252670.py index 1d9d29e..d6f9906 100644 --- a/HTS_etf_252670.py +++ b/HTS_etf_252670.py @@ -171,8 +171,8 @@ class HTS_etf(HTS): print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), stock_code, stock_code, bs_sell_price) # 로그 출력 - print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, avg5: %.2f, avg30: %.2f, open: %d, high: %d, low: %d, slow_k: %.2f" % - (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["avg5"][0], data["avg30"][0], data["open"][0], data["high"][0], data["low"][0], data["slow_k"][0])) + print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, high: %d, low: %d, macd: %.2f" % + (str(THIS_TIME), stock_code, bs_buy_price, bs_sell_price, data["open"][0], data["high"][0], data["low"][0], data["macd"][0])) if int(THIS_TIME.strftime("%M")) % 10 == 0: self.slackBot.post_live_to_slack(stock_code, stock_name)