import schedule import time import dingding import monitors.jin10_cal as jin10 from monitors import macd_boll,vol_up # from plombery import task, get_logger, Trigger, register_pipeline #vegas # schedule.every().hour.at(":00").do(vegas.run_crypto, interval = '1h') # times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"] # for t in times: # schedule.every().day.at(t).do(vegas.run_crypto, interval = '4h') #vegas_cross # schedule.every().hour.at(":00").do(vegas_cross.run_crypto, interval = '1h') # times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"] # for t in times: # schedule.every().day.at(t).do(vegas_cross.run_crypto, interval = '4h') # register_pipeline(tasks=[vol_up.run_crypto('15')], triggers=[Trigger()]) #vol schedule.every(5).minutes.do(vol_up.run_crypto, interval = '5m') schedule.every().hour.at(":00").do(vol_up.run_crypto, interval = '15m') schedule.every().hour.at(":15").do(vol_up.run_crypto, interval = '15m') schedule.every().hour.at(":30").do(vol_up.run_crypto, interval = '15m') schedule.every().hour.at(":45").do(vol_up.run_crypto, interval = '15m') schedule.every().hour.at(":00").do(vol_up.run_crypto, interval = '1h') #macd_boll schedule.every().hour.at(":00").do(macd_boll.run_crypto, interval = '15m') schedule.every().hour.at(":15").do(macd_boll.run_crypto, interval = '15m') schedule.every().hour.at(":30").do(macd_boll.run_crypto, interval = '15m') schedule.every().hour.at(":45").do(macd_boll.run_crypto, interval = '15m') schedule.every().hour.at(":00").do(macd_boll.run_crypto, interval = '1h') times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"] for t in times: schedule.every().day.at(t).do(macd_boll.run_crypto, interval = '4h') #jin10 schedule.every().day.at("09:00").do(jin10.run) version = 'V1.4' text = f'☕️ Signals running... {version} !' print(text) dingding.send_message(text) while True: schedule.run_pending() time.sleep(1)