hedgequantx 2.9.213 → 2.9.214

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.js +11 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.9.213",
3
+ "version": "2.9.214",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -179,17 +179,23 @@ const run = async () => {
179
179
  // First launch - show banner then try restore session
180
180
  await banner();
181
181
 
182
- const spinner = ora({ text: 'LOADING DASHBOARD...', color: 'yellow' }).start();
182
+ const spinner = ora({ text: 'Restoring session...', color: 'cyan' }).start();
183
183
 
184
184
  const restored = await connections.restoreFromStorage();
185
185
 
186
186
  if (restored) {
187
- currentService = connections.getAll()[0].service;
187
+ const conn = connections.getAll()[0];
188
+ currentService = conn.service;
189
+ const accountCount = currentService.accounts?.length || 0;
190
+ spinner.succeed(`Session restored: ${conn.propfirm} (${accountCount} accounts)`);
191
+ await new Promise(r => setTimeout(r, 500));
192
+
193
+ const spinner2 = ora({ text: 'Loading dashboard...', color: 'yellow' }).start();
188
194
  await refreshStats();
189
- // Store spinner globally - dashboard will stop it when ready to display
190
- global.__hqxSpinner = spinner;
195
+ global.__hqxSpinner = spinner2;
191
196
  } else {
192
- spinner.stop(); // Stop spinner - no session to restore
197
+ spinner.info('No saved session - please login');
198
+ await new Promise(r => setTimeout(r, 500));
193
199
  global.__hqxSpinner = null;
194
200
  }
195
201