csv headline in buy/sell message
This commit is contained in:
parent
854dfe1b58
commit
10e08b7fb8
@ -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./')
|
||||
|
Loading…
Reference in New Issue
Block a user