dryrunloop
This commit is contained in:
parent
996ee9c632
commit
deb6d9d969
8302
ccxt/async_support/okx.py
Normal file
8302
ccxt/async_support/okx.py
Normal file
File diff suppressed because it is too large
Load Diff
16
tools/dryrunloop.service
Normal file
16
tools/dryrunloop.service
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Run dryrunloop.sh script daily
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash /home/ubuntu/freqtrade/tools/dryrunloop.sh
|
||||
WorkingDirectory=/home/ubuntu/freqtrade/tools
|
||||
User=ubuntu
|
||||
Group=ubuntu
|
||||
|
||||
# Ensure the script exits cleanly
|
||||
SuccessExitStatus=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
tools/dryrunloop.sh
Executable file
10
tools/dryrunloop.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 动态获取昨天和明天的日期
|
||||
START_DATE=$(date -d "yesterday" +"%Y%m%d")
|
||||
END_DATE=$(date -d "tomorrow" +"%Y%m%d")
|
||||
|
||||
./download.sh --timerange $START_DATE-$END_DATE
|
||||
# 执行 hyperopt 和 dryrun
|
||||
./hyperopt.sh $START_DATE $END_DATE
|
||||
./dryrun.sh
|
||||
9
tools/dryrunloop.timer
Normal file
9
tools/dryrunloop.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Run dryrunloop.sh daily at 8:05 AM
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 08:05:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
x
Reference in New Issue
Block a user