This commit is contained in:
dsyoon
2025-09-07 16:20:42 +09:00
parent 576c24a737
commit 75b6e8d227
2 changed files with 5 additions and 2 deletions

View File

@@ -301,8 +301,8 @@ class Monitor(HTS):
last_buy_dt = self.buy_cooldown.get(symbol, {}).get('buy', {}).get('datetime')
if last_buy_dt:
time_diff = current_time - last_buy_dt
if time_diff.total_seconds() < 1800:
print(f"{symbol}: 매수 금지 중 (남은 시간: {1800 - time_diff.total_seconds():.0f}초)")
if time_diff.total_seconds() < BUY_MINUTE_LIMIT:
print(f"{symbol}: 매수 금지 중 (남은 시간: {BUY_MINUTE_LIMIT - time_diff.total_seconds():.0f}초)")
return False
if data['signal'].iloc[-1] == 'movingaverage':