more pure bash to speed up things

This commit is contained in:
olli 2023-11-22 18:07:12 +01:00
parent 814f7fcb94
commit a0362391cd

View File

@ -110,6 +110,7 @@ function check_sell_conditions {
echo "${result}" >>${g_tmp}/result-${tmpfile}
rm -f "${f_TRADE_HIST_FILE}"
rm -f "${f_TRADE_HIST_FILE_INTERIM}"
unset f_open_trade
#echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})"
echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})"
fi
@ -138,7 +139,6 @@ function check_sell_conditions_strategy {
# [ -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
echo "SELL running ${f_strategy}"
. "${f_strategy}" || return 0
# #fi
# else