From efee0a831dddbebbd9ed04c111d3f8978ef77f91 Mon Sep 17 00:00:00 2001 From: defkev Date: Sun, 17 Jun 2018 23:42:37 +0200 Subject: [PATCH] Add asset to push message If you get bombarded with messages by multiple bots it can get a bit confusing at times to know who is selling/buying what. --- lib/engine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/engine.js b/lib/engine.js index b3d45c400a..d143ddecca 100644 --- a/lib/engine.js +++ b/lib/engine.js @@ -430,7 +430,7 @@ module.exports = function (s, conf) { }, conf.wait_for_settlement) } else { - pushMessage('Buying ' + s.exchange.name.toUpperCase(), 'placing buy order at ' + formatCurrency(price, s.currency) + ', ' + formatCurrency(quote.bid - Number(price), s.currency) + ' under best bid\n') + pushMessage('Buying ' + formatAsset(size, s.asset) + ' on ' + s.exchange.name.toUpperCase(), 'placing buy order at ' + formatCurrency(price, s.currency) + ', ' + formatCurrency(quote.bid - Number(price), s.currency) + ' under best bid\n') doOrder() } } @@ -478,7 +478,7 @@ module.exports = function (s, conf) { }, conf.wait_for_settlement) } else { - pushMessage('Selling ' + s.exchange.name.toUpperCase(), 'placing sell order at ' + formatCurrency(price, s.currency) + ', ' + formatCurrency(Number(price) - quote.bid, s.currency) + ' over best ask\n') + pushMessage('Selling ' + formatAsset(size, s.asset) + ' on ' + s.exchange.name.toUpperCase(), 'placing sell order at ' + formatCurrency(price, s.currency) + ', ' + formatCurrency(Number(price) - quote.bid, s.currency) + ' over best ask\n') doOrder() } }