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
This commit is contained in:
Piyush Dixit 2021-05-20 23:05:43 +05:30 committed by GitHub
parent 087f1a5eb6
commit d53f69f8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`
}