12
This commit is contained in:
parent
1e607675d3
commit
66ce3a5e36
14
main.py
14
main.py
@ -6,12 +6,12 @@ import monitors.vegas as vegas
|
||||
import monitors.large_transfer as lt
|
||||
|
||||
# 监控
|
||||
# schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run)
|
||||
# schedule.every().hour.at(":00").do(vegas.run)
|
||||
schedule.every(setting.whaleAlert_minutes).minutes.do(lt.run)
|
||||
schedule.every().hour.at(":00").do(vegas.run, interval = '1h')
|
||||
|
||||
# print(f'Running... ChatID: {setting.chat_id}')
|
||||
# while True:
|
||||
# schedule.run_pending()
|
||||
# time.sleep(1)
|
||||
print(f'Running... ChatID: {setting.chat_id}')
|
||||
while True:
|
||||
schedule.run_pending()
|
||||
time.sleep(1)
|
||||
|
||||
vegas.run('1h')
|
||||
# vegas.run('1h')
|
||||
@ -96,6 +96,7 @@ def check_signal(symbol, interval,df):
|
||||
telegram_sender.send_message(setting.chat_id, message)
|
||||
|
||||
def run(interval):
|
||||
print('Vegas策略运行....')
|
||||
symbols= get_symbols()
|
||||
for s in symbols:
|
||||
df = get_dataFrame(s, interval)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user