trades with mock in history.js