33
This commit is contained in:
parent
7e3c2ecc95
commit
db4760100d
3
main.py
3
main.py
@ -1,5 +1,6 @@
|
||||
import schedule
|
||||
import bn
|
||||
import settings
|
||||
import time
|
||||
import strategy.crossover as crossover
|
||||
|
||||
@ -20,7 +21,7 @@ for s in symbols:
|
||||
# 4h
|
||||
schedule.every(4).hours.do(crossover.strategy_run, symbol=s, interval='4h')
|
||||
|
||||
print('监控开始...')
|
||||
print(f'监控开始... ChatID: {settings.chat_id}')
|
||||
while True:
|
||||
schedule.run_pending()
|
||||
time.sleep(1)
|
||||
@ -1,6 +1,7 @@
|
||||
import os
|
||||
|
||||
# telegram bot key
|
||||
telegram_bot_key='5863718864:AAFijN65_SbbGQ0WDBggzKJw2SIcZVTVrPw'
|
||||
|
||||
#
|
||||
chat_id = "@cyber4trading"
|
||||
chat_id = os.getenv("TQ_CHAT_ID", "@cyber4trading")
|
||||
Loading…
Reference in New Issue
Block a user