hedgequantx 2.4.31 → 2.4.32

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.4.31",
3
+ "version": "2.4.32",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -301,16 +301,23 @@ const launchAlgo = async (service, account, contract, config) => {
301
301
  tps++;
302
302
  const latencyStart = Date.now();
303
303
 
304
+ // Debug: log first tick to see structure
305
+ if (tickCount === 1) {
306
+ algoLogger.info(ui, 'FIRST TICK', `price=${tick.price} bid=${tick.bid} ask=${tick.ask} vol=${tick.volume}`);
307
+ }
308
+
304
309
  // Feed tick to strategy
305
- strategy.processTick({
310
+ const tickData = {
306
311
  contractId: tick.contractId || contractId,
307
- price: tick.price,
312
+ price: tick.price || tick.lastPrice || tick.bid,
308
313
  bid: tick.bid,
309
314
  ask: tick.ask,
310
- volume: tick.volume || 1,
311
- side: tick.lastTradeSide || 'unknown',
315
+ volume: tick.volume || tick.size || 1,
316
+ side: tick.lastTradeSide || tick.side || 'unknown',
312
317
  timestamp: tick.timestamp || Date.now()
313
- });
318
+ };
319
+
320
+ strategy.processTick(tickData);
314
321
 
315
322
  stats.latency = Date.now() - latencyStart;
316
323