hedgequantx 2.6.42 → 2.6.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.6.42",
3
+ "version": "2.6.43",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -529,20 +529,14 @@ const handleOrderNotification = (service, data) => {
529
529
  const actualFillQty = fillInfo.totalFillQuantity || fillInfo.fillQuantity || notif.quantity || 0;
530
530
  const fillPrice = fillInfo.avgFillPrice || fillInfo.lastFillPrice || 0;
531
531
 
532
- console.log(`[FILL] Received: ${orderTag} | ${fillInfo.transactionType === 1 ? 'BUY' : 'SELL'} ${actualFillQty}x @ ${fillPrice} | latency=${roundTripLatency}ms`);
533
-
534
- debug('ORDER FILLED:', {
535
- orderTag,
536
- side: fillInfo.transactionType === 1 ? 'BUY' : 'SELL',
537
- qty: actualFillQty,
538
- avgPrice: fillPrice,
539
- latencyMs: roundTripLatency,
540
- });
532
+ // Debug only - UI handles display via orderFilled event
533
+ debug('FILL Received:', orderTag, fillInfo.transactionType === 1 ? 'BUY' : 'SELL', actualFillQty, '@', fillPrice, 'latency:', roundTripLatency, 'ms');
541
534
 
542
535
  // Clone for fill event (async handlers may need to keep the data)
543
536
  service.emit('orderFilled', FillInfoPool.clone(fillInfo));
544
537
  } else {
545
- console.log(`[ORDER STATUS] ${orderTag} | status=${fillInfo.status} text=${fillInfo.text || 'N/A'}`);
538
+ // Debug only - UI handles display via orderNotification event
539
+ debug('ORDER STATUS:', orderTag, 'status:', fillInfo.status, 'text:', fillInfo.text || 'N/A');
546
540
  }
547
541
  } catch (e) {
548
542
  debug('Error decoding order notification:', e.message);
@@ -135,8 +135,8 @@ const fastEntry = (service, orderData) => {
135
135
  const orderWithRoute = { ...orderData, tradeRoute };
136
136
  const order = OrderPool.fill(orderTag, effectiveLoginInfo, orderWithRoute);
137
137
 
138
- // DEBUG: Log order details
139
- console.log(`[ORDER] Sending: ${orderTag} | ${orderData.side === 0 ? 'BUY' : 'SELL'} ${orderData.size}x ${orderData.symbol} | acct=${orderData.accountId} | route=${tradeRoute}`);
138
+ // Debug only - UI handles display via events
139
+ debug('ORDER Sending:', orderTag, orderData.side === 0 ? 'BUY' : 'SELL', orderData.size, 'x', orderData.symbol, 'acct:', orderData.accountId, 'route:', tradeRoute);
140
140
 
141
141
  // OPTIMIZED: Use fastEncode with cached type
142
142
  const buffer = proto.fastEncode('RequestNewOrder', order);
@@ -150,7 +150,7 @@ const fastEntry = (service, orderData) => {
150
150
  service.orderConn.fastSend(buffer);
151
151
  }
152
152
 
153
- console.log(`[ORDER] Sent to Rithmic: ${orderTag} | buffer=${buffer.length} bytes`);
153
+ debug('ORDER Sent to Rithmic:', orderTag, 'buffer:', buffer.length, 'bytes');
154
154
 
155
155
  // Track for round-trip latency measurement
156
156
  LatencyTracker.recordEntry(orderTag, entryTime);