hedgequantx 2.6.33 → 2.6.34

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.33",
3
+ "version": "2.6.34",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -523,6 +523,8 @@ const handleOrderNotification = (service, data) => {
523
523
 
524
524
  // Emit fill event if this is a fill
525
525
  if (isFill) {
526
+ console.log(`[FILL] Received: ${orderTag} | ${fillInfo.transactionType === 1 ? 'BUY' : 'SELL'} ${fillQty}x @ ${fillInfo.avgFillPrice} | latency=${roundTripLatency}ms`);
527
+
526
528
  debug('ORDER FILLED:', {
527
529
  orderTag,
528
530
  side: fillInfo.transactionType === 1 ? 'BUY' : 'SELL',
@@ -533,6 +535,8 @@ const handleOrderNotification = (service, data) => {
533
535
 
534
536
  // Clone for fill event (async handlers may need to keep the data)
535
537
  service.emit('orderFilled', FillInfoPool.clone(fillInfo));
538
+ } else {
539
+ console.log(`[ORDER STATUS] ${orderTag} | status=${fillInfo.status} text=${fillInfo.text || 'N/A'}`);
536
540
  }
537
541
  } catch (e) {
538
542
  debug('Error decoding order notification:', e.message);
@@ -105,6 +105,9 @@ const fastEntry = (service, orderData) => {
105
105
  // OPTIMIZED: Use pre-allocated order object
106
106
  const order = OrderPool.fill(orderTag, service.loginInfo, orderData);
107
107
 
108
+ // DEBUG: Log order details
109
+ console.log(`[ORDER] Sending: ${orderTag} | ${orderData.side === 0 ? 'BUY' : 'SELL'} ${orderData.size}x ${orderData.symbol} | acct=${orderData.accountId}`);
110
+
108
111
  // OPTIMIZED: Use fastEncode with cached type
109
112
  const buffer = proto.fastEncode('RequestNewOrder', order);
110
113
 
@@ -117,6 +120,8 @@ const fastEntry = (service, orderData) => {
117
120
  service.orderConn.fastSend(buffer);
118
121
  }
119
122
 
123
+ console.log(`[ORDER] Sent to Rithmic: ${orderTag} | buffer=${buffer.length} bytes`);
124
+
120
125
  // Track for round-trip latency measurement
121
126
  LatencyTracker.recordEntry(orderTag, entryTime);
122
127