diff --git a/dabo/functions/webpage.sh b/dabo/functions/webpage.sh
index 71b3b43..e679f9c 100644
--- a/dabo/functions/webpage.sh
+++ b/dabo/functions/webpage.sh
@@ -80,6 +80,19 @@ function webpage {
echo -e "
$(egrep ":00:" MARKET_PERFORMANCE | tail -n10)\n$(tail -n1 MARKET_PERFORMANCE)
" >>../index.html.tmp
echo "Complete list" >>../index.html.tmp
+ echo "Top/Flop
" >>../index.html.tmp
+ ls -1 trade-histories/*.result | cut -d . -f3-6 | sort -u | while read f_asset_results
+ do
+ f_asset=$(echo ${f_asset_results} | cut -d\- -f1)
+ 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
+
+ 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
+
+
echo 'Latest trades
' >>../index.html.tmp
echo 'Open
' >>../index.html.tmp