trading-quant/main.py
2024-11-15 22:59:22 +08:00

52 lines
1.8 KiB
Python

import schedule
import time
import dingding
import monitors.jin10_cal as jin10
from monitors import macd_boll,vol_up
#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')
#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("00:00").do(jin10.run)
version = 'V1.3'
text = f'☕️ Signals running... {version} !'
print(text)
dingding.send_message(text)
while True:
schedule.run_pending()
time.sleep(1)