From 4cbff236800ea80aa5f62900cdb2680bf5051d03 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 24 Sep 2024 17:07:11 +0200 Subject: [PATCH] multiple orders in array --- dabo/functions/get_orders.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dabo/functions/get_orders.sh b/dabo/functions/get_orders.sh index be0ed97..5c5c3f3 100644 --- a/dabo/functions/get_orders.sh +++ b/dabo/functions/get_orders.sh @@ -102,18 +102,18 @@ function get_order_line_vars { local f_type if [[ $f_order_type = limit ]] then - [[ $f_order_type = buy ]] && f_type="open_long" - [[ $f_order_type = sell ]] && f_type="open_short" + [[ $f_order_side = buy ]] && f_type="open_long" + [[ $f_order_side = sell ]] && f_type="open_short" fi if [[ $f_order_type = Stop ]] then - [[ $f_order_type = buy ]] && f_type="sl_close_short" - [[ $f_order_type = sell ]] && f_type="sl_close_long" + [[ $f_order_side = buy ]] && f_type="sl_close_short" + [[ $f_order_side = sell ]] && f_type="sl_close_long" fi if [[ $f_order_type = MarketIfTouched ]] then - [[ $f_order_type = buy ]] && f_type="tp_close_short" - [[ $f_order_type = sell ]] && f_type="tp_close_long" + [[ $f_order_side = buy ]] && f_type="tp_close_short" + [[ $f_order_side = sell ]] && f_type="tp_close_long" fi o[${f_asset}_${f_type}_type]=${f_order_array[1]}