diff options
author | Piyush Dixit <79581397+PiyushDixit96@users.noreply.github.com> | 2021-05-20 23:05:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 23:05:43 +0530 |
commit | d53f69f8ce4d9b5943904c32e81683d505b4c8ae (patch) | |
tree | b90a54c0f44a4e00715c34fc21fc156d5cf6f770 | |
parent | 087f1a5eb669e11cf86c04916c445b6dacbd53ab (diff) |
fix style
Example uneven error in style :
💰 💰 💰 Spot Order PARTIALLY FILLED Side: SELL Symbol: #REEFBTC Price: 0.00000071
Last Filled: 1224.0
Remaining: 854.0
Total: 0.0015585 BTC Order ID: #IDxxxxxxx
fixed new style:
💰 💰 💰
Spot SELL Order PARTIALLY FILLED
Symbol: #REEFBTC
Price: 0.00000071
Last Filled: 1224.0
Remaining: 854.0
Total: 0.0015585 BTC
Order ID: #IDxxxxxxx
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,7 +98,7 @@ function process_data(data) { }
} else if (executionType === 'TRADE') {
if (orderStatus === 'PARTIALLY_FILLED') {
- txt = `💰 💰 💰 <b>Spot ${side} Order PARTIALLY FILLED</b>\n<b>Symbol:</b> #${symbol} <b>Price:</b> ${price}
+ 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}`
@@ -106,7 +106,7 @@ function process_data(data) { 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}`
+ txt = `🔴 🟡 🔵\n<b>Spot ${side} Order ${orderStatus}</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 {
txt = `⚠️ ⚠️ ⚠️\n<b>Undefined</b>\nExecution Type: ${executionType}\nOrder Status ${orderStatus}\nFull Details:\n${data}`
}
|