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