trading-quant/main.py
2024-09-22 17:01:06 +08:00

38 lines
1.3 KiB
Python

import schedule
import time
import monitors.jin10_cal as jin10
from monitors import vegas, vegas_cross, macd_boll
#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')
#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.21'
print(f'Running... {version}')
while True:
schedule.run_pending()
time.sleep(1)