trading-quant/main.py
2024-06-08 10:28:51 +08:00

22 lines
620 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import schedule
import time
import monitors.vegas as vegas
import monitors.large_transfer as lt
import telegram_sender,setting
# 监控大额转账
# schedule.every(1).minutes.do(lt.run)
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')
version = 'V1.3'
print(f'Running... {version}')
telegram_sender.send_message(setting.chat_id, f'☕️ Strategy is updated\r\n\r\nVersion: {version}')
while True:
schedule.run_pending()
time.sleep(1)