aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiyush Dixit <79581397+PiyushDixit96@users.noreply.github.com>2021-05-28 08:00:51 +0530
committerGitHub <noreply@github.com>2021-05-28 08:00:51 +0530
commit29ebf21fe18164eec222d5cae3410e768de76dc0 (patch)
tree82909eb11daa111adeac776f9b859f44c7a1fb81
parent99c34a406633e6d47099b46c758befceff9bde7d (diff)
price updated
-rw-r--r--index.js4
1 files 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 = `⌛ ⌛ ⌛\n<b>Spot ${orderType} ${side} Order PARTIALLY FILLED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Last Filled:</b> ${fixFloat(lastTradeQuantity)}\n<b>Total Filled:</b> ${fixFloat(Cumulative_filled_quantity)}\n<b>Remaining:</b> ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\n<b>Order ID:</b> #ID${orderId}`
+ txt = `⌛ ⌛ ⌛\n<b>Spot ${orderType} ${side} Order PARTIALLY FILLED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${Last_price}\n<b>Last Filled:</b> ${fixFloat(lastTradeQuantity)}\n<b>Total Filled:</b> ${fixFloat(Cumulative_filled_quantity)}\n<b>Remaining:</b> ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\n<b>Order ID:</b> #ID${orderId}`
} else if (orderStatus === 'FILLED') {
- txt = `💰 💰 💰\n<b>Spot ${orderType} ${side} Order FULLY FILLED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Filled:</b> ${fixFloat(Cumulative_filled_quantity)}${total}\n<b>Order ID:</b> #ID${orderId}`
+ txt = `💰 💰 💰\n<b>Spot ${orderType} ${side} Order FULLY FILLED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${Last_price}\n<b>Filled:</b> ${fixFloat(Cumulative_filled_quantity)}${total}\n<b>Order ID:</b> #ID${orderId}`
}
} else if (['REPLACED', 'EXPIRED', 'PENDING_CANCEL'].includes(orderStatus)) {
txt = `🔴 🟡 🔵\n<b>Spot ${orderType} ${side} Order ${orderStatus}</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}${total}\n<b>Order ID:</b> #ID${orderId}`