more pure bash to speed up things
This commit is contained in:
parent
d3e90e9da2
commit
6e1b81e02a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user