[CHORE] Refactor Trade.js