From 0109799a4c64086ed0038118cfd5f41f4e322696 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 16 Dec 2024 16:24:05 +0100 Subject: [PATCH] fix typo --- dabo/functions/order.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/functions/order.sh b/dabo/functions/order.sh index a4c112e..f4f2b03 100644 --- a/dabo/functions/order.sh +++ b/dabo/functions/order.sh @@ -147,7 +147,7 @@ function order { # stoploss (change) for open position elif [[ $f_type = "stoploss" ]] then - f_params="${f_params}'reduceOnly': True, 'triggerPrice': $f_stoploss, 'triggerDirection': 'down', 'type': 'market, '" + f_params="${f_params}'reduceOnly': True, 'triggerPrice': $f_stoploss, 'triggerDirection': 'down', 'type': 'market'" fi fi if [ -n "$f_takeprofit" ] @@ -172,7 +172,7 @@ function order { [[ $f_type =~ limit|market ]] && f_params="${f_params}'takeProfit': { 'triggerPrice': $f_takeprofit, 'type': 'limit', 'price': $f_takeprofit, }, " if [[ $f_type = "takeprofit" ]] then - f_params="${f_params}'reduceOnly': True, 'triggerPrice': $f_takeprofit, 'triggerDirection': 'up', 'type': 'limit, '" + f_params="${f_params}'reduceOnly': True, 'triggerPrice': $f_takeprofit, 'triggerDirection': 'up', 'type': 'limit'" fi fi