From d53f69f8ce4d9b5943904c32e81683d505b4c8ae Mon Sep 17 00:00:00 2001 From: Piyush Dixit <79581397+PiyushDixit96@users.noreply.github.com> Date: Thu, 20 May 2021 23:05:43 +0530 Subject: fix style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example uneven error in style : 💰 💰 💰 Spot Order PARTIALLY FILLED Side: SELL Symbol: #REEFBTC Price: 0.00000071 Last Filled: 1224.0 Remaining: 854.0 Total: 0.0015585 BTC Order ID: #IDxxxxxxx fixed new style: 💰 💰 💰 Spot SELL Order PARTIALLY FILLED Symbol: #REEFBTC Price: 0.00000071 Last Filled: 1224.0 Remaining: 854.0 Total: 0.0015585 BTC Order ID: #IDxxxxxxx --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0ee69d6..0590cde 100644 --- a/index.js +++ b/index.js @@ -98,7 +98,7 @@ function process_data(data) { } } else if (executionType === 'TRADE') { if (orderStatus === 'PARTIALLY_FILLED') { - txt = `💰 💰 💰 Spot ${side} Order PARTIALLY FILLED\nSymbol: #${symbol} Price: ${price} + txt = `💰 💰 💰\nSpot ${side} Order PARTIALLY FILLED\nSymbol: #${symbol} Price: ${price} Last Filled: ${fixFloat(lastTradeQuantity)} Remaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))} Total: ${total} Order ID: #ID${orderId}` @@ -106,7 +106,7 @@ function process_data(data) { txt = `✅ ✅ ✅\nSpot ${side} Order FULLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nFilled: ${fixFloat(Cumulative_filled_quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` } } else if (['REPLACED', 'EXPIRED', 'PENDING_CANCEL'].includes(orderStatus)) { - txt = `🔴 🟡 🔵\nSpot Order ${orderStatus}\nSide: ${side}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` + txt = `🔴 🟡 🔵\nSpot ${side} Order ${orderStatus}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` } else { txt = `⚠️ ⚠️ ⚠️\nUndefined\nExecution Type: ${executionType}\nOrder Status ${orderStatus}\nFull Details:\n${data}` } -- cgit v1.2.3