fix on sell strategy load in bot

This commit is contained in:
olli 2023-06-03 08:40:37 +02:00
parent e9f4a07ff0
commit 3ed741f1be

View File

@ -134,7 +134,8 @@ function check_sell_conditions_strategy {
# run strategy
if [ -s "${f_strategy}" ]
then
local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2)
[ -z "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f2)
[ -n "${BOT}" ] && local f_strategy_name=$(echo ${f_strategy} | cut -d. -f6)
if grep -q "buy.${f_strategy_name}.conf" ${f_TRADE_HIST_FILE}
then
. "${f_strategy}" || return 0