This commit is contained in:
aazhou 2023-06-09 14:05:43 +08:00
parent 7e3c2ecc95
commit db4760100d
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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")