summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}`