From 29ebf21fe18164eec222d5cae3410e768de76dc0 Mon Sep 17 00:00:00 2001
From: Piyush Dixit <79581397+PiyushDixit96@users.noreply.github.com>
Date: Fri, 28 May 2021 08:00:51 +0530
Subject: price updated
---
index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index e03dfaa..a8f2e45 100644
--- a/index.js
+++ b/index.js
@@ -106,9 +106,9 @@ function process_data(data) {
}
} else if (executionType === 'TRADE') {
if (orderStatus === 'PARTIALLY_FILLED') {
- txt = `⌛ ⌛ ⌛\nSpot ${orderType} ${side} Order PARTIALLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nLast Filled: ${fixFloat(lastTradeQuantity)}\nTotal Filled: ${fixFloat(Cumulative_filled_quantity)}\nRemaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\nOrder ID: #ID${orderId}`
+ txt = `⌛ ⌛ ⌛\nSpot ${orderType} ${side} Order PARTIALLY FILLED\nSymbol: #${symbol}\nPrice: ${Last_price}\nLast Filled: ${fixFloat(lastTradeQuantity)}\nTotal Filled: ${fixFloat(Cumulative_filled_quantity)}\nRemaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\nOrder ID: #ID${orderId}`
} else if (orderStatus === 'FILLED') {
- txt = `💰 💰 💰\nSpot ${orderType} ${side} Order FULLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nFilled: ${fixFloat(Cumulative_filled_quantity)}${total}\nOrder ID: #ID${orderId}`
+ txt = `💰 💰 💰\nSpot ${orderType} ${side} Order FULLY FILLED\nSymbol: #${symbol}\nPrice: ${Last_price}\nFilled: ${fixFloat(Cumulative_filled_quantity)}${total}\nOrder ID: #ID${orderId}`
}
} else if (['REPLACED', 'EXPIRED', 'PENDING_CANCEL'].includes(orderStatus)) {
txt = `🔴 🟡 🔵\nSpot ${orderType} ${side} Order ${orderStatus}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}${total}\nOrder ID: #ID${orderId}`
--
cgit v1.2.3