From 127da47a8a83182e080e417c931efacddf54b3d6 Mon Sep 17 00:00:00 2001
From: Piyush Dixit <79581397+PiyushDixit96@users.noreply.github.com>
Date: Fri, 21 May 2021 07:17:53 +0530
Subject: Update index.js
---
index.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/index.js b/index.js
index 34205a0..fc94a9f 100644
--- a/index.js
+++ b/index.js
@@ -88,24 +88,24 @@ function process_data(data) {
}
if (executionType === 'NEW') {
if (orderStatus === 'NEW') {
- txt = `💸 💸 💸\nSpot ${side} Order CREATED\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 ${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 ${side} Order CANCELED\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 = `💰 💰 💰\nSpot ${side} Order PARTIALLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nLast Filled: ${fixFloat(lastTradeQuantity)}\nRemaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\nTotal: ${total}\nOrder ID: #ID${orderId}`
+ txt = `⌛ ⌛ ⌛\nSpot ${side} Order PARTIALLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nLast Filled: ${fixFloat(lastTradeQuantity)}\nRemaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\nTotal: ${total}\nOrder ID: #ID${orderId}`
} else if (orderStatus === 'FILLED') {
- txt = `✅ ✅ ✅\nSpot ${side} Order FULLY FILLED\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 ${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}`
+ txt = `⚠️ ⚠️⚠️\nUndefined\nExecution Type: ${executionType}\nOrder Status ${orderStatus}\nFull Details:\n${data}`
}
sendMessage(txt)
}
--
cgit v1.2.3