From 63b92ccb8c8bc8bf5b68d563e6fea70e4f687400 Mon Sep 17 00:00:00 2001 From: olli Date: Thu, 22 Jun 2023 16:45:37 +0200 Subject: [PATCH] Top and Flop 10 in Webpage --- dabo/functions/webpage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/functions/webpage.sh b/dabo/functions/webpage.sh index 3e22484..8392c5d 100644 --- a/dabo/functions/webpage.sh +++ b/dabo/functions/webpage.sh @@ -87,10 +87,10 @@ function webpage { echo $(cat trade-histories/*${f_asset_results} | awk "{ SUM += \$1} END { printf(\"%.2f\", SUM)}") >trade-histories/${f_asset}.complete_result done echo "

Top 10

" >>../index.html.tmp - grep [0-9] trade-histories/*.complete_result | sort -t: -k2 -rn | head -n 10 | cut -d/ -f2 | perl -pe 's/\.complete_result:/ /; s/$/ %
/' >>../index.html.tmp + grep [0-9] trade-histories/*.complete_result | sort -t: -k2 -rn | head -n 10 | cut -d/ -f2 | perl -pe 's/\.complete_result:/ /; s/$/%
/' >>../index.html.tmp echo "

Flop 10

" >>../index.html.tmp - grep [0-9] trade-histories/*.complete_result | sort -t: -k2 -n | head -n 10 | cut -d/ -f2 | perl -pe 's/\.complete_result:/ /; s/$/ %
/' >>../index.html.tmp + grep [0-9] trade-histories/*.complete_result | sort -t: -k2 -n | head -n 10 | cut -d/ -f2 | perl -pe 's/\.complete_result:/ /; s/$/%
/' >>../index.html.tmp echo '

Latest trades

' >>../index.html.tmp