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 = `⌛ ⌛ ⌛\nSpot ${orderType} ${side} Order PARTIALLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nLast Filled: ${fixFloat(lastTradeQuantity)}\nTotal Filled: ${fixFloat(Cumulative_filled_quantity)}\nRemaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\nOrder ID: #ID${orderId}` + txt = `⌛ ⌛ ⌛\nSpot ${orderType} ${side} Order PARTIALLY FILLED\nSymbol: #${symbol}\nPrice: ${Last_price}\nLast Filled: ${fixFloat(lastTradeQuantity)}\nTotal Filled: ${fixFloat(Cumulative_filled_quantity)}\nRemaining: ${fixFloat(Number(quantity) - Number(Cumulative_filled_quantity))}\nOrder ID: #ID${orderId}` } else if (orderStatus === 'FILLED') { - txt = `💰 💰 💰\nSpot ${orderType} ${side} Order FULLY FILLED\nSymbol: #${symbol}\nPrice: ${price}\nFilled: ${fixFloat(Cumulative_filled_quantity)}${total}\nOrder ID: #ID${orderId}` + txt = `💰 💰 💰\nSpot ${orderType} ${side} Order FULLY FILLED\nSymbol: #${symbol}\nPrice: ${Last_price}\nFilled: ${fixFloat(Cumulative_filled_quantity)}${total}\nOrder ID: #ID${orderId}` } } else if (['REPLACED', 'EXPIRED', 'PENDING_CANCEL'].includes(orderStatus)) { txt = `🔴 🟡 🔵\nSpot ${orderType} ${side} Order ${orderStatus}\nSymbol: #${symbol}\nPrice: ${price}\nQuantity: ${fixFloat(quantity)}${total}\nOrder ID: #ID${orderId}`