Moved trade stats updating from TradesRepository to TradeTracker.