From 05f1f2ea94cc502e12d644adea80e8db3459f16f Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 23 Jun 2023 22:20:01 +0200 Subject: [PATCH] get FEE dynamically fix --- dabo/functions/binance_convert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/binance_convert.sh b/dabo/functions/binance_convert.sh index 7159e72..9013fce 100644 --- a/dabo/functions/binance_convert.sh +++ b/dabo/functions/binance_convert.sh @@ -61,7 +61,7 @@ ${FUNCNAME} $@" fi local f_price_diff=$(g_percentage-diff ${f_market_price} ${f_convert_price}) - if [ $(echo "${f_price_diff} > ${FEE}" | bc -l) -eq 0 ] + if [ $(echo "${f_price_diff} > ${FEE}" | bc -l) -eq 1 ] then local f_note="Price difference between Market Price (${f_market_price}) and Binance Convert Price (${f_convert_price}) is higher then Trading Fee (${f_price_diff} > ${FEE}), so I will better use trade then convert" g_echo_note "$f_note"