forked from freqtrade/freqtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd1.sh
executable file
·38 lines (30 loc) · 1.12 KB
/
dd1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env sh
DATERANGE="20211201-"
TIMESCALES="1m" # 3m 5m 15m 1h 1d"
CONFIGFILE="user_data/configb.json"
COMMAND="download-data"
# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
BLUE='\033[1;34m'
PURPLE='\033[1;35m'
CYAN='\033[1;36m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
GRAY='\033[1;30m'
ORANGE='\033[0;33m'
WHITE='\033[1;37m'
RED='\033[0;31m'
PINK='\033[1;31m'
NC='\033[0m' # No Color
#printf "${BLUE}BLUE ${PURPLE}PURPLE ${CYAN}CYAN ${GREEN}GREEN ${YELLOW}YELLOW ${GRAY}GRAY ${ORANGE}ORANGE ${WHITE}WHITE ${RED}RED ${PINK}PINK ${NC}NC NO COLOR\n"
printf "\n\n${NC}Hit {enter} to run the command below. Press CTRL-C to cancel...\n${PINK}$ ${WHITE}docker-compose run freqtrade ${YELLOW}$COMMAND ${WHITE}-c ${CYAN}$CONFIGFILE ${WHITE}--timerange ${GREEN}$DATERANGE ${WHITE}-t ${PURPLE}$TIMESCALES\n${NC}...${NC}" \
#;read -r varuserinput
varuserinput=""
if [ "$varuserinput" = "" ]; then
$"docker-compose" run freqtrade \
${COMMAND:-""} \
-c ${CONFIGFILE:-""} \
--timerange ${DATERANGE:-""} \
-t ${TIMESCALES:-""} ;
else
printf "Exiting..."
fi