aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiyush Dixit <79581397+PiyushDixit96@users.noreply.github.com>2021-05-21 06:12:45 +0530
committerGitHub <noreply@github.com>2021-05-21 06:12:45 +0530
commit239868d123d1c61f3b75c4bb2fb626f444e111c7 (patch)
tree5d7c77d9e9df858ec9d3b64bd3637f8bb762e7d7
parente7f542eaebd286c91c669319bee4ca7528397c01 (diff)
Update index.js
-rw-r--r--index.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/index.js b/index.js
index 0590cde..34205a0 100644
--- a/index.js
+++ b/index.js
@@ -98,10 +98,7 @@ function process_data(data) {
}
} else if (executionType === 'TRADE') {
if (orderStatus === 'PARTIALLY_FILLED') {
- txt = `💰 💰 💰\n<b>Spot ${side} Order PARTIALLY FILLED</b>\n<b>Symbol:</b> #${symbol} <b>Price:</b> ${price}
- <b>Last Filled:</b> ${fixFloat(lastTradeQuantity)}
- <b>Remaining:</b> ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}
- <b>Total:</b> ${total} <b>Order ID:</b> #ID${orderId}`
+ txt = `💰 💰 💰\n<b>Spot ${side} Order PARTIALLY FILLED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Last Filled:</b> ${fixFloat(lastTradeQuantity)}\n<b>Remaining:</b> ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
} else if (orderStatus === 'FILLED') {
txt = `✅ ✅ ✅\n<b>Spot ${side} Order FULLY FILLED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Filled:</b> ${fixFloat(Cumulative_filled_quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
}