get FEE dynamically fix

This commit is contained in:
olli 2023-06-23 22:20:01 +02:00
parent 048dfd2a18
commit 05f1f2ea94

View File

@ -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"