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

@@ -7,6 +7,9 @@ COIN_TELEGRAM_CHAT_ID = '574661323'
STOCK_TELEGRAM_BOT_TOKEN = "6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw"
STOCK_TELEGRAM_CHAT_ID = '574661323'
# 몇초 만에 다시 매수를 할 것인지 체크
BUY_MINUTE_LIMIT = 1200
# 볼린저 밴드 설정
BOLLINGER_PERIOD = 20 # 볼린저 밴드 기간
BOLLINGER_STD = 2 # 표준편차 승수

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':