From 6e1b81e02abb0513c7e138927cd5fa984820a242 Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 23 Nov 2023 10:46:51 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/check_buy_conditions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/functions/check_buy_conditions.sh b/dabo/functions/check_buy_conditions.sh index 0a2805c..3a007b7 100644 --- a/dabo/functions/check_buy_conditions.sh +++ b/dabo/functions/check_buy_conditions.sh @@ -19,7 +19,7 @@ function check_buy_conditions { # get asset vars if [ -n "${BOT}" ] then - time get_vars_from_csv "${f_ASSET_HIST_FILE}" || return 1 + get_vars_from_csv "${f_ASSET_HIST_FILE}" || return 1 fi ### from here: check for defined state to buy @@ -36,7 +36,7 @@ function check_buy_conditions { for f_strategy in "${f_buy_strategies_array[@]}" do f_echo_prefix="BUY ${f_ASSET}@${CURRENCY}:${f_price}:${f_strategy} - " - if time check_buy_conditions_strategy ${f_ASSET_HIST_FILE} ${f_strategy} + if check_buy_conditions_strategy ${f_ASSET_HIST_FILE} ${f_strategy} then f_BUY="${f_echo_prefix} All BUY conditions met!!!" break