From 10e08b7fb8dbb8d4ce61023e67d2abea1ea2d4d8 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 13 May 2023 21:12:50 +0200 Subject: [PATCH] csv headline in buy/sell message --- dabo/functions/check_sell_conditions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dabo/functions/check_sell_conditions.sh b/dabo/functions/check_sell_conditions.sh index c52f03e..0e80387 100644 --- a/dabo/functions/check_sell_conditions.sh +++ b/dabo/functions/check_sell_conditions.sh @@ -146,6 +146,7 @@ function check_sell_conditions { then echo "SELL: $(tail -n1 ${f_ASSET_HIST_FILE} | cut -d, -f1)" echo "${csv_headline} +${f_last_line} ${f_SELL}" | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, result=$(g_percentage-diff ${BUY_PRICE} ${current}) result=$(echo "${result}-${FEE}" | bc | sed 's/^\./0./; s/^-\./-0./')