1
This commit is contained in:
parent
26153a8341
commit
5c7103fe03
2
main.py
2
main.py
@ -30,7 +30,7 @@ times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"]
|
||||
for t in times:
|
||||
schedule.every().day.at(t).do(macd_boll.run_crypto, interval = '4h')
|
||||
|
||||
version = 'V1.14'
|
||||
version = 'V1.15'
|
||||
print(f'Running... {version}')
|
||||
while True:
|
||||
schedule.run_pending()
|
||||
|
||||
@ -67,7 +67,7 @@ def stratergy_run(symbol, interval, df, debug):
|
||||
|
||||
def run_crypto(interval, debug=False):
|
||||
print('Vegas策略运行.')
|
||||
|
||||
time.sleep(5)
|
||||
for s in crypto.get_future_symbols():
|
||||
df = crypto.get_klines(s, interval, True)
|
||||
stratergy_run(s,interval, df, debug)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user