hedgequantx 2.6.60 → 2.6.61

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.60",
3
+ "version": "2.6.61",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -877,12 +877,14 @@ const launchCopyTrading = async (config) => {
877
877
  platform: lead.type === 'rithmic' ? 'Rithmic' : 'ProjectX',
878
878
  startTime: Date.now(),
879
879
  aiSupervision: false,
880
- aiMode: null
880
+ aiMode: null,
881
+ agentCount: 0 // Number of AI agents active
881
882
  };
882
883
 
883
884
  // Initialize AI Supervisor - only if user enabled it
884
885
  if (enableAI) {
885
886
  const aiAgents = aiService.getAgents();
887
+ stats.agentCount = aiAgents.length;
886
888
  if (aiAgents.length > 0) {
887
889
  const supervisorResult = StrategySupervisor.initialize(null, aiAgents, lead.service, lead.account.accountId);
888
890
  stats.aiSupervision = supervisorResult.success;
@@ -269,6 +269,7 @@ const launchAlgo = async (service, account, contract, config) => {
269
269
  startTime: Date.now(),
270
270
  aiSupervision: false,
271
271
  aiMode: null,
272
+ agentCount: 0, // Number of AI agents active
272
273
  // Fast path stats
273
274
  fastPath: useFastPath,
274
275
  avgEntryLatency: 0,
@@ -454,6 +455,7 @@ const launchAlgo = async (service, account, contract, config) => {
454
455
  if (config.enableAI) {
455
456
  const aiAgents = aiService.getAgents();
456
457
  aiAgentCount = aiAgents.length;
458
+ stats.agentCount = aiAgentCount;
457
459
  if (aiAgents.length > 0) {
458
460
  const supervisorResult = StrategySupervisor.initialize(strategy, aiAgents, service, account.accountId);
459
461
  stats.aiSupervision = supervisorResult.success;
@@ -239,6 +239,18 @@ class AlgoUI {
239
239
  const r4c2 = buildCell('PROPFIRM', stats.propfirm || 'N/A', chalk.cyan, colR);
240
240
  row(r4c1t + pad(colL - r4c1p.length), r4c2.padded);
241
241
 
242
+ this._line(chalk.cyan(GM));
243
+
244
+ // Row 5: Connection | Agents
245
+ const connectionType = stats.platform || stats.connection || 'N/A';
246
+ const connectionColor = connectionType.toLowerCase().includes('rithmic') ? chalk.green : chalk.yellow;
247
+ const agentCount = stats.agentCount || 0;
248
+ const agentStr = agentCount > 0 ? `${agentCount} agent${agentCount > 1 ? 's' : ''} active` : 'None';
249
+ const agentColor = agentCount > 0 ? chalk.green : chalk.gray;
250
+ const r5c1 = buildCell('CONNECTION', connectionType, connectionColor, colL);
251
+ const r5c2 = buildCell('AGENTS', agentStr, agentColor, colR);
252
+ row(r5c1.padded, r5c2.padded);
253
+
242
254
  this._line(chalk.cyan(GB));
243
255
  }
244
256