1
This commit is contained in:
parent
645318bfc6
commit
6a7d1253c3
6
main.py
6
main.py
@ -5,7 +5,7 @@ import monitors.large_transfer as lt
|
|||||||
import telegram_sender,setting
|
import telegram_sender,setting
|
||||||
|
|
||||||
# 监控大额转账
|
# 监控大额转账
|
||||||
schedule.every(1).minutes.do(lt.run)
|
# schedule.every(1).minutes.do(lt.run)
|
||||||
|
|
||||||
schedule.every().hour.at(":00").do(vegas.run_crypto, interval = '1h')
|
schedule.every().hour.at(":00").do(vegas.run_crypto, interval = '1h')
|
||||||
|
|
||||||
@ -13,9 +13,9 @@ times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"]
|
|||||||
for t in times:
|
for t in times:
|
||||||
schedule.every().day.at(t).do(vegas.run_crypto, interval = '4h')
|
schedule.every().day.at(t).do(vegas.run_crypto, interval = '4h')
|
||||||
|
|
||||||
version = 'V1.1'
|
version = 'V1.2'
|
||||||
print(f'Running... {version}')
|
print(f'Running... {version}')
|
||||||
telegram_sender.send_message(setting.chat_id, f'☕️ Strategy is updated! Version: {version}')
|
telegram_sender.send_message(setting.chat_id, f'☕️ Strategy is updated!\r\n\r\nVersion: {version}')
|
||||||
while True:
|
while True:
|
||||||
schedule.run_pending()
|
schedule.run_pending()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user