fix typo
This commit is contained in:
parent
8b83d450d0
commit
0109799a4c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user