fix empty level var

This commit is contained in:
olli 2024-12-20 14:55:10 +01:00
parent 4a02ad0e51
commit c70713356d

View File

@ -205,7 +205,7 @@ do
[[ $side = short ]] && entry_price=${v[${asset}_levels_1w_next_up]} [[ $side = short ]] && entry_price=${v[${asset}_levels_1w_next_up]}
# if entry price not given set to current price # if entry price not given set to current price
[ -z "$entry_price" ] && entry_price=${v[BTCUSDT_price]} [ -z "$entry_price" ] && entry_price=${v[${asset}_price]}
# check for updates if order with entry price is already defined # check for updates if order with entry price is already defined
if [ -n "${o[${asset}_open_${side}_entry_price]}" ] if [ -n "${o[${asset}_open_${side}_entry_price]}" ]