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]}