From f519f57c0fd3d3ad30fd45f766be139b0e3a0ec1 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Sun, 24 Aug 2025 15:52:57 +0900 Subject: [PATCH] init --- monitor.py | 3 ++- monitor_coin_1h_1.py | 2 +- monitor_coin_1h_2.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/monitor.py b/monitor.py index f6dc91a..fdc01ce 100644 --- a/monitor.py +++ b/monitor.py @@ -272,6 +272,7 @@ class Monitor: except Exception: self.last_signal[symbol] = '' self.buy_cooldown[symbol] = current_time + # 매수를 저장함 self._save_buy_cooldown() print(f"{KR_COINS[symbol]} ({symbol}) [{data['signal'].iloc[-1]}], 현재가: {data['Close'].iloc[-1]:.4f}, 20분간 매수 금지 시작") @@ -359,7 +360,7 @@ class Monitor: self.buy_cooldown[symbol] = current_time self._save_buy_cooldown() - print(f"{KR_COINS[symbol]} ({symbol}) [{data['signal'].iloc[-1]}], 현재가: {data['Close'].iloc[-1]:.4f}, 20분간 매수 금지 시작") + print(f"{KR_COINS[symbol]} ({symbol}) [{data['signal'].iloc[-1]}], 현재가: {data['Close'].iloc[-1]:.4f}, 20분간 매도 금지 시작") self.sendMsg("[KRW-COIN]" + "\n" + self.format_message('COIN', symbol, KR_COINS[symbol], data['Close'].iloc[-1], data['signal'].iloc[-1])) except Exception as e: print(f"Error buying {symbol}: {str(e)}") diff --git a/monitor_coin_1h_1.py b/monitor_coin_1h_1.py index 5a9c80a..f7f02eb 100644 --- a/monitor_coin_1h_1.py +++ b/monitor_coin_1h_1.py @@ -48,4 +48,4 @@ class MonitorCoin (Monitor): time.sleep(3) if __name__ == "__main__": - MonitorCoin(cooldown_file='coins_buy_time_1.json').run_schedule() + MonitorCoin(cooldown_file='coins_buy_time_1h_1.json').run_schedule() diff --git a/monitor_coin_1h_2.py b/monitor_coin_1h_2.py index 82fc69d..91ab2f2 100644 --- a/monitor_coin_1h_2.py +++ b/monitor_coin_1h_2.py @@ -48,4 +48,4 @@ class MonitorCoin (Monitor): time.sleep(3) if __name__ == "__main__": - MonitorCoin(cooldown_file='coins_buy_time_2.json').run_schedule() + MonitorCoin(cooldown_file='coins_buy_time_1h_2.json').run_schedule()