Move trading socket events/variables into initTrade scope