From 437ae6764c8838d135285e5bc38b00f4c1a8c1aa Mon Sep 17 00:00:00 2001 From: dsyoon Date: Thu, 19 Oct 2023 20:40:54 +0900 Subject: [PATCH] init --- HTS_etf_122630.py | 2 +- HTS_etf_233740.py | 2 +- HTS_etf_251340.py | 2 +- HTS_etf_252670.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HTS_etf_122630.py b/HTS_etf_122630.py index d898b20..7ad05f9 100644 --- a/HTS_etf_122630.py +++ b/HTS_etf_122630.py @@ -197,7 +197,7 @@ class HTS_etf(HTS): print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, close: %d, high: %d, low: %d, macd: %.2f" % (str(THIS_TIME), self.stock_code, bs_buy_price, bs_sell_price, data["open"][len(data["open"])-1], data["close"][len(data["close"])-1], data["high"][len(data["high"])-1], data["low"][len(data["low"])-1], data["macd"][len(data["macd"])-1])) - if int(THIS_TIME.strftime("%M")) % 50 == 0: + if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0): self.slackBot.post_live_to_slack(self.stock_code, self.stock_name, data["close"][len(data["close"])-1], data["macd"][len(data["macd"])-1]) time.sleep(60) diff --git a/HTS_etf_233740.py b/HTS_etf_233740.py index a34962a..eb046cd 100644 --- a/HTS_etf_233740.py +++ b/HTS_etf_233740.py @@ -197,7 +197,7 @@ class HTS_etf(HTS): print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, close: %d, high: %d, low: %d, macd: %.2f" % (str(THIS_TIME), self.stock_code, bs_buy_price, bs_sell_price, data["open"][len(data["open"])-1], data["close"][len(data["close"])-1], data["high"][len(data["high"])-1], data["low"][len(data["low"])-1], data["macd"][len(data["macd"])-1])) - if int(THIS_TIME.strftime("%M")) % 50 == 0: + if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0): self.slackBot.post_live_to_slack(self.stock_code, self.stock_name, data["close"][len(data["close"])-1], data["macd"][len(data["macd"])-1]) time.sleep(60) diff --git a/HTS_etf_251340.py b/HTS_etf_251340.py index a3835c0..8904e0f 100644 --- a/HTS_etf_251340.py +++ b/HTS_etf_251340.py @@ -197,7 +197,7 @@ class HTS_etf(HTS): print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, close: %d, high: %d, low: %d, macd: %.2f" % (str(THIS_TIME), self.stock_code, bs_buy_price, bs_sell_price, data["open"][len(data["open"])-1], data["close"][len(data["close"])-1], data["high"][len(data["high"])-1], data["low"][len(data["low"])-1], data["macd"][len(data["macd"])-1])) - if int(THIS_TIME.strftime("%M")) % 50 == 0: + if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0): self.slackBot.post_live_to_slack(self.stock_code, self.stock_name, data["close"][len(data["close"])-1], data["macd"][len(data["macd"])-1]) time.sleep(60) diff --git a/HTS_etf_252670.py b/HTS_etf_252670.py index 9ad944e..179770b 100644 --- a/HTS_etf_252670.py +++ b/HTS_etf_252670.py @@ -198,7 +198,7 @@ class HTS_etf(HTS): print("TIMECHECK: %s, code: %s, buy: %d, sell: %d, open: %d, close: %d, high: %d, low: %d, macd: %.2f" % (str(THIS_TIME), self.stock_code, bs_buy_price, bs_sell_price, data["open"][len(data["open"])-1], data["close"][len(data["close"])-1], data["high"][len(data["high"])-1], data["low"][len(data["low"])-1], data["macd"][len(data["macd"])-1])) - if int(THIS_TIME.strftime("%M")) % 50 == 0: + if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0): self.slackBot.post_live_to_slack(self.stock_code, self.stock_name, data["close"][len(data["close"])-1], data["macd"][len(data["macd"])-1]) time.sleep(60)