This commit is contained in:
dsyoon
2023-10-10 21:26:51 +09:00
parent 007e060bd9
commit c674896d9a
3 changed files with 21 additions and 0 deletions

View File

@@ -177,6 +177,9 @@ class HTS_etf(HTS):
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]))
if THIS_TIME.strftime("%M") == "00" or THIS_TIME.strftime("%M") == "05":
self.slackBot.post_live_to_slack(stock_code)
time.sleep(60)
THIS_TIME = datetime.now()