write trades to /var/www/trades.html