init
This commit is contained in:
@@ -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)}")
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user