hedgequantx 2.6.8 → 2.6.10

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.8",
3
+ "version": "2.6.10",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -256,28 +256,27 @@ const run = async () => {
256
256
  log.info('Starting HQX CLI');
257
257
  await bannerClosed();
258
258
 
259
- // PRE-LOAD: Initialize Rithmic protobuf definitions at startup
260
- // This removes ~100ms latency from first order
259
+ // Single loading spinner
260
+ const spinner = ora({ text: 'LOADING DASHBOARD...', color: 'yellow' }).start();
261
+
262
+ // PRE-LOAD: Initialize Rithmic protobuf definitions at startup (silent)
261
263
  const { proto } = require('./services/rithmic/protobuf');
262
- const protoSpinner = ora({ text: 'INITIALIZING TRADING ENGINE...', color: 'cyan' }).start();
263
264
  try {
264
265
  await proto.load();
265
- protoSpinner.succeed('TRADING ENGINE READY');
266
266
  } catch (e) {
267
- protoSpinner.warn('Trading engine partial init');
267
+ // Silent fail
268
268
  }
269
269
 
270
270
  // Restore session
271
- const spinner = ora({ text: 'RESTORING SESSION...', color: 'yellow' }).start();
272
271
  const restored = await connections.restoreFromStorage();
273
272
 
274
273
  if (restored) {
275
- spinner.succeed('SESSION RESTORED');
276
274
  currentService = connections.getAll()[0].service;
277
275
  await refreshStats();
278
- } else {
279
- spinner.info('NO ACTIVE SESSION');
280
276
  }
277
+
278
+ spinner.stop();
279
+ console.clear();
281
280
 
282
281
  // Main loop
283
282
  while (true) {
@@ -639,10 +639,10 @@ const copyTradingMenu = async () => {
639
639
  console.log();
640
640
  console.log(chalk.cyan.bold(' Step 5: Risk Parameters'));
641
641
 
642
- const dailyTarget = await prompts.numberInput('Daily target ($):', 500, 1, 10000);
642
+ const dailyTarget = await prompts.numberInput('Daily target ($):', 1000, 1, 10000);
643
643
  if (dailyTarget === null) return;
644
644
 
645
- const maxRisk = await prompts.numberInput('Max risk ($):', 250, 1, 5000);
645
+ const maxRisk = await prompts.numberInput('Max risk ($):', 500, 1, 5000);
646
646
  if (maxRisk === null) return;
647
647
 
648
648
  // Step 6: Privacy