From dd7e7e0aa749e95fa07dabba1c94489b78a7b495 Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 12 Nov 2023 13:27:33 +0100 Subject: [PATCH] more pure bash to speed up things --- dabo/functions/check_sell_conditions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index bab735f..a0b5c9a 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -94,12 +94,14 @@ function check_sell_conditions { # echo "${csv_headline},Marketperformace #${f_last_line}" | cut -d, -f 2-22 | perl -pe 's/([0-9].[0-9][0-9][0-9][0-9][0-9][0-9])[0-9]+/$1/g' | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, # echo "${f_SELL}" - result=$(g_percentage-diff ${BUY_PRICE} ${current}) + #result=$(g_percentage-diff ${BUY_PRICE} ${current}) + result=$(g_percentage-diff ${BUY_PRICE} ${f_price}) result=$(g_calc "${result}-${FEE}") echo "${result}" >>${g_tmp}/result-${tmpfile} rm -f "${f_TRADE_HIST_FILE}" rm -f "${f_TRADE_HIST_FILE_INTERIM}" - echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})" + #echo "RESULT: ${result}% (${BUY_PRICE} -> ${current})" + echo "RESULT: ${result}% (${BUY_PRICE} -> ${f_price})" fi