more pure bash to speed up things

This commit is contained in:
olli 2023-11-23 10:46:51 +01:00
parent d3e90e9da2
commit 6e1b81e02a

View File

@ -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