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