From 087f1a5eb669e11cf86c04916c445b6dacbd53ab Mon Sep 17 00:00:00 2001 From: Piyush Dixit <79581397+PiyushDixit96@users.noreply.github.com> Date: Thu, 20 May 2021 22:46:26 +0530 Subject: update style --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 13042b7..0ee69d6 100644 --- a/index.js +++ b/index.js @@ -88,22 +88,22 @@ function process_data(data) { } if (executionType === 'NEW') { if (orderStatus === 'NEW') { - txt = `💸 💸 💸\nSpot Order CREATED\nSide: ${side}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` + txt = `💸 💸 💸\nSpot ${side} Order CREATED\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` } else if (orderStatus === 'REJECTED') { - txt = `🚫 🚫 🚫\nSpot Order REJECTED\nSide: ${side}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` + txt = `🚫 🚫 🚫\nSpot ${side} Order REJECTED\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` } } else if (executionType === 'CANCELED') { if (orderStatus === 'CANCELED') { - txt = `🛑 🛑 🛑\nSpot Order CANCELED\nSide: ${side}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` + txt = `🛑 🛑 🛑\nSpot ${side} Order CANCELED\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` } } else if (executionType === 'TRADE') { if (orderStatus === 'PARTIALLY_FILLED') { - txt = `💰 💰 💰 Spot Order PARTIALLY FILLED Side: ${side} Symbol: #${symbol} Price: ${price} + txt = `💰 💰 💰 Spot ${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}` } else if (orderStatus === 'FILLED') { - txt = `✅ ✅ ✅\nSpot Order FULLY FILLED\nSide: ${side}\nSymbol: #${symbol}\nPrice: ${price}\nFilled: ${fixFloat(Cumulative_filled_quantity)}\nTotal: ${total}\nOrder ID: #ID${orderId}` + 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}` -- cgit v1.2.3