12-30-2018, 07:34 PM
You can set a timeout yourself in the buy call for example, so it looks like something like this:
Code:
Trader.prototype.buy = function(price, amount, callback) {
setTimeout(() => {
// your code
}, 2000)
}