diff options
author | Piyush Dixit <79581397+PiyushDixit96@users.noreply.github.com> | 2021-05-20 22:46:26 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 22:46:26 +0530 |
commit | 087f1a5eb669e11cf86c04916c445b6dacbd53ab (patch) | |
tree | 849baf2e6d344282fde62c5dd7d42bceab69a2fc | |
parent | 0e37fb0f8af75e60fd15279b61c6fe142a4d901b (diff) |
update style
-rw-r--r-- | index.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -88,22 +88,22 @@ function process_data(data) { }
if (executionType === 'NEW') {
if (orderStatus === 'NEW') {
- txt = `💸 💸 💸\n<b>Spot Order CREATED\nSide:</b> ${side}\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
+ txt = `💸 💸 💸\n<b>Spot ${side} Order CREATED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
} else if (orderStatus === 'REJECTED') {
- txt = `🚫 🚫 🚫\n<b>Spot Order REJECTED\nSide:</b> ${side}\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
+ txt = `🚫 🚫 🚫\n<b>Spot ${side} Order REJECTED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
}
} else if (executionType === 'CANCELED') {
if (orderStatus === 'CANCELED') {
- txt = `🛑 🛑 🛑\n<b>Spot Order CANCELED\nSide:</b> ${side}\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
+ txt = `🛑 🛑 🛑\n<b>Spot ${side} Order CANCELED</b>\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
}
} else if (executionType === 'TRADE') {
if (orderStatus === 'PARTIALLY_FILLED') {
- txt = `💰 💰 💰 <b>Spot Order PARTIALLY FILLED Side:</b> ${side} <b>Symbol:</b> #${symbol} <b>Price:</b> ${price}
+ txt = `💰 💰 💰 <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}`
} else if (orderStatus === 'FILLED') {
- txt = `✅ ✅ ✅\n<b>Spot Order FULLY FILLED\nSide:</b> ${side}\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}`
+ 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}`
}
} else if (['REPLACED', 'EXPIRED', 'PENDING_CANCEL'].includes(orderStatus)) {
txt = `🔴 🟡 🔵\n<b>Spot Order ${orderStatus}\nSide:</b> ${side}\n<b>Symbol:</b> #${symbol}\n<b>Price:</b> ${price}\n<b>Quantity:</b> ${fixFloat(quantity)}\n<b>Total:</b> ${total}\n<b>Order ID:</b> #ID${orderId}`
|