hedgequantx 2.9.42 → 2.9.44

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.9.42",
3
+ "version": "2.9.44",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -86,9 +86,10 @@ const oneAccountMenu = async (service) => {
86
86
  const config = await configureAlgo(selectedAccount, contract, strategy);
87
87
  if (!config) return;
88
88
 
89
- // Check for AI Supervision
89
+ // Check for AI Supervision BEFORE asking to start
90
90
  const agentCount = getActiveAgentCount();
91
91
  let supervisionConfig = null;
92
+ let aiEnabled = false;
92
93
 
93
94
  if (agentCount > 0) {
94
95
  console.log();
@@ -122,13 +123,16 @@ const oneAccountMenu = async (service) => {
122
123
  }
123
124
 
124
125
  supervisionConfig = getSupervisionConfig();
126
+ aiEnabled = true;
125
127
  console.log(chalk.green(` ✓ AI Supervision ready with ${agentCount} agent(s)`));
126
-
127
- const proceedWithAI = await prompts.confirmPrompt('Start algo with AI supervision?', true);
128
- if (!proceedWithAI) return;
129
128
  }
130
129
  }
131
130
 
131
+ // Final confirmation to start
132
+ const startPrompt = aiEnabled ? 'Start algo with AI supervision?' : 'Start algo trading?';
133
+ const proceed = await prompts.confirmPrompt(startPrompt, true);
134
+ if (!proceed) return;
135
+
132
136
  await executeAlgo({
133
137
  service: accountService,
134
138
  account: selectedAccount,
@@ -228,18 +232,15 @@ const configureAlgo = async (account, contract, strategy) => {
228
232
  const contracts = await prompts.numberInput('Number of contracts:', 1, 1, 10);
229
233
  if (contracts === null) return null;
230
234
 
231
- const dailyTarget = await prompts.numberInput('Daily target ($):', 200, 1, 10000);
235
+ const dailyTarget = await prompts.numberInput('Daily target ($):', 1000, 1, 10000);
232
236
  if (dailyTarget === null) return null;
233
237
 
234
- const maxRisk = await prompts.numberInput('Max risk ($):', 100, 1, 5000);
238
+ const maxRisk = await prompts.numberInput('Max risk ($):', 500, 1, 5000);
235
239
  if (maxRisk === null) return null;
236
240
 
237
241
  const showName = await prompts.confirmPrompt('Show account name?', false);
238
242
  if (showName === null) return null;
239
243
 
240
- const confirm = await prompts.confirmPrompt('Start algo trading?', true);
241
- if (!confirm) return null;
242
-
243
244
  return { contracts, dailyTarget, maxRisk, showName };
244
245
  };
245
246