diff --git a/main.py b/main.py index 2197900..6f65f9b 100644 --- a/main.py +++ b/main.py @@ -6,12 +6,12 @@ import monitors.vegas as vegas import monitors.large_transfer as lt # 监控 -# schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run) -# schedule.every().hour.at(":00").do(vegas.run) +schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run) +schedule.every().hour.at(":00").do(vegas.run, interval = '1h') -# print(f'Running... ChatID: {setting.chat_id}') -# while True: -# schedule.run_pending() -# time.sleep(1) +print(f'Running... ChatID: {setting.chat_id}') +while True: + schedule.run_pending() + time.sleep(1) -vegas.run('1h') \ No newline at end of file +# vegas.run('1h') \ No newline at end of file diff --git a/monitors/vegas.py b/monitors/vegas.py index 24c6634..203a8e8 100644 --- a/monitors/vegas.py +++ b/monitors/vegas.py @@ -96,6 +96,7 @@ def check_signal(symbol, interval,df): telegram_sender.send_message(setting.chat_id, message) def run(interval): + print('Vegas策略运行....') symbols= get_symbols() for s in symbols: df = get_dataFrame(s, interval)