From 671d8d956ab289c6cbeb9deb073891a14edccd3b Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 14 Nov 2024 13:48:15 +0800 Subject: [PATCH] 1 --- monitors/macd_boll.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/monitors/macd_boll.py b/monitors/macd_boll.py index 6c29fa0..388ecf4 100644 --- a/monitors/macd_boll.py +++ b/monitors/macd_boll.py @@ -51,15 +51,18 @@ def stratergy_run(symbol, interval, df, debug): if latest['Long_Signal'] == True: direction = '多' if direction != "": - message = f"策略:【MACD+BOLL策略V1.1】\r\n" + message = '🦄Signals Notificaiton🦄\r\n\r\n' + message += f"策略:【MACD+BOLL策略V1.1】\r\n" message += f"品种: {symbol}\r\n" message += f"周期: {interval}\r\n" message += f"信号: 【{direction}】\r\n" message += f"收盘价: {latest['close']}\r\n" if debug == False: - url = 'https://discordapp.com/api/webhooks/1286585288986198048/iQ-yr26ViW45GM48ql8rPu70Iumqcmn_XXAmxAcKGeiQBmTQoDPeq-TmlChvIHkw_HJ-' - discord_sender.send_message(url,'🦄信号提醒🦄',message) + # url = 'https://discordapp.com/api/webhooks/1286585288986198048/iQ-yr26ViW45GM48ql8rPu70Iumqcmn_XXAmxAcKGeiQBmTQoDPeq-TmlChvIHkw_HJ-' + # discord_sender.send_message(url,'🦄信号提醒🦄',message) + + dingding.send_message(message,True) print(f"【{symbol} - {interval}】 is singal fired!") else: