pair = ['BTC/USD', 'ETH/BTC', 'ETH/USD']
time_from = 20200101
time_to = 20200120
considering the above list and variables
I want to execute the following cmd using os module.
cmd = ("freqtrade download-data -d /home/datarepo -p 'BTC/USD' 'ETH/BTC' 'ETH/USD' -t 1h --timerange 20200101-20200101 --exchange bittrex -vv")
When I do string format with "' '".join
I could able to generate cmd like the below example which is not correct cmd.
cmd = ("freqtrade download-data -d /home/datarepo -p "BTC/USD' 'ETH/BTC' 'ETH/USD" -t 1h --timerange '20200101-20200101' --exchange bittrex -vv")
Any suggestions would be appreciated. Thank you