From b279735ae81ee9a6b6791956607528f7d31178cf Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 16 Dec 2024 18:04:39 +0100 Subject: [PATCH] fixes tp/sl --- dabo/functions/order.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/order.sh b/dabo/functions/order.sh index 39e21e8..a40cd09 100644 --- a/dabo/functions/order.sh +++ b/dabo/functions/order.sh @@ -112,7 +112,7 @@ function order { f_params="${f_params}'marginMode': '$MARGIN_MODE', " # calculate amount with leverage - if [[ $f_price != stoploss ]] && [[ $f_price != takeprofit ]] + if [[ $f_type != stoploss ]] && [[ $f_type != takeprofit ]] then g_calc "${f_amount}*${LEVERAGE}" f_amount=$g_calc_result