This commit is contained in:
dsyoon
2025-08-07 02:18:34 +09:00
parent bfff7635e1
commit a50faacb48

View File

@@ -498,8 +498,11 @@ def monitor_coins():
if recent_data['buy_point'].iloc[-1] != 1:
continue
print(f" - {KR_COINS[symbol]} ({symbol}): {recent_data['Close'].iloc[-1]:.2f}")
try:
pool = Pool(12)
pool.map(send_coin_msg, ["[KRW-COIN]" + "\n" + format_message('COIN', symbol, KR_COINS[symbol], recent_data['Close'].iloc[-1], recent_data['buy_signal'].iloc[-1])])
except Exception as e:
print(f"Error sending Telegram message: {str(e)}")
# buy
buy_success = buy_ticker(symbol, recent_data)