hedgequantx 2.6.40 → 2.6.41

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.40",
3
+ "version": "2.6.41",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -579,9 +579,11 @@ const launchAlgo = async (service, account, contract, config) => {
579
579
  tps++;
580
580
  const latencyStart = Date.now();
581
581
 
582
- // Debug: log first tick to see structure
582
+ // Debug: log first tick and confirm data flow after 5s
583
583
  if (tickCount === 1) {
584
584
  algoLogger.info(ui, 'FIRST TICK', `price=${tick.price} bid=${tick.bid} ask=${tick.ask} vol=${tick.volume || tick.size || 0}`);
585
+ } else if (tickCount === 100) {
586
+ algoLogger.info(ui, 'DATA FLOWING', `100 ticks received - market data OK`);
585
587
  }
586
588
 
587
589
  // Feed tick to strategy
@@ -625,8 +627,8 @@ const launchAlgo = async (service, account, contract, config) => {
625
627
 
626
628
  stats.latency = Date.now() - latencyStart;
627
629
 
628
- // Heartbeat every 30 seconds - show strategy model values
629
- if (Date.now() - lastHeartbeat > 30000) {
630
+ // Heartbeat every 15 seconds - show strategy model values
631
+ if (Date.now() - lastHeartbeat > 15000) {
630
632
  // Try to get model values from strategy
631
633
  const modelValues = strategy.getModelValues?.() || strategy.getModelValues?.(contractId) || null;
632
634
 
@@ -638,10 +640,10 @@ const launchAlgo = async (service, account, contract, config) => {
638
640
  const mom = (modelValues.momentum || 0).toFixed(1);
639
641
  const signals = modelValues.signalCount || 0;
640
642
  const deltaStr = delta >= 0 ? `+${delta}` : `${delta}`;
641
- algoLogger.info(ui, strategyName, `OFI=${ofi} Z=${zscore} Mom=${mom} Δ=${deltaStr} | ${signals} signals | ${tps} t/30s`);
643
+ algoLogger.info(ui, strategyName, `OFI=${ofi} Z=${zscore} Mom=${mom} Δ=${deltaStr} | ${tps} t/15s | ${tickCount} total`);
642
644
  } else {
643
645
  // Fallback
644
- algoLogger.info(ui, 'SCANNING', `${tps} ticks/30s | ${tickCount} total | price=${tickData.price}`);
646
+ algoLogger.info(ui, 'SCANNING', `${tps} ticks/15s | ${tickCount} total | price=${tickData.price}`);
645
647
  }
646
648
  lastHeartbeat = Date.now();
647
649
  tps = 0;