hedgequantx 2.9.56 → 2.9.57

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.56",
3
+ "version": "2.9.57",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -135,9 +135,14 @@ class AlgoUI {
135
135
  this._line(chalk.cyan(BOX.V) + chalk.cyan(' ██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ') + chalk.yellow('██╔╝ ██╗') + ' ' + chalk.cyan(BOX.V));
136
136
  this._line(chalk.cyan(BOX.V) + chalk.cyan(' ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ') + chalk.yellow('╚═╝ ╚═╝') + ' ' + chalk.cyan(BOX.V));
137
137
 
138
- // Separator + title
138
+ // Separator + title with version in magenta
139
139
  this._line(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
140
- this._line(chalk.cyan(BOX.V) + chalk.yellow(center(`PROP FUTURES ALGO TRADING V${version}`, W)) + chalk.cyan(BOX.V));
140
+ const titleText = 'PROP FUTURES ALGO TRADING';
141
+ const versionText = `V${version}`;
142
+ const fullTitle = `${titleText} ${versionText}`;
143
+ const titlePad = W - fullTitle.length;
144
+ const titleLeftPad = Math.floor(titlePad / 2);
145
+ this._line(chalk.cyan(BOX.V) + ' '.repeat(titleLeftPad) + chalk.yellow(titleText) + ' ' + chalk.magenta(versionText) + ' '.repeat(titlePad - titleLeftPad) + chalk.cyan(BOX.V));
141
146
  this._line(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
142
147
  this._line(chalk.cyan(BOX.V) + chalk.cyan.bold(center((this.config.subtitle || 'HQX ALGO TRADING').toUpperCase(), W)) + chalk.cyan(BOX.V));
143
148
  }
@@ -397,9 +402,14 @@ const renderSessionSummary = (stats, stopReason) => {
397
402
  console.log(chalk.cyan(BOX.V) + chalk.cyan(' ██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ') + chalk.yellow('██╔╝ ██╗') + ' ' + chalk.cyan(BOX.V));
398
403
  console.log(chalk.cyan(BOX.V) + chalk.cyan(' ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ') + chalk.yellow('╚═╝ ╚═╝') + ' ' + chalk.cyan(BOX.V));
399
404
 
400
- // Separator + title
405
+ // Separator + title with version in magenta
401
406
  console.log(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
402
- console.log(chalk.cyan(BOX.V) + chalk.yellow(center(`PROP FUTURES ALGO TRADING V${version}`, W)) + chalk.cyan(BOX.V));
407
+ const sumTitleText = 'PROP FUTURES ALGO TRADING';
408
+ const sumVersionText = `V${version}`;
409
+ const sumFullTitle = `${sumTitleText} ${sumVersionText}`;
410
+ const sumTitlePad = W - sumFullTitle.length;
411
+ const sumTitleLeftPad = Math.floor(sumTitlePad / 2);
412
+ console.log(chalk.cyan(BOX.V) + ' '.repeat(sumTitleLeftPad) + chalk.yellow(sumTitleText) + ' ' + chalk.magenta(sumVersionText) + ' '.repeat(sumTitlePad - sumTitleLeftPad) + chalk.cyan(BOX.V));
403
413
  console.log(chalk.cyan(BOX.ML + BOX.H.repeat(W) + BOX.MR));
404
414
  console.log(chalk.cyan(BOX.V) + chalk.yellow(center('SESSION SUMMARY', W)) + chalk.cyan(BOX.V));
405
415
 
package/src/ui/index.js CHANGED
@@ -69,8 +69,12 @@ const displayBanner = () => {
69
69
  }
70
70
 
71
71
  console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
72
- const tagline = isMobile ? `HQX V${version}` : `PROP FUTURES ALGO TRADING V${version}`;
73
- console.log(chalk.cyan('║') + chalk.yellow(centerText(tagline, innerWidth)) + chalk.cyan('║'));
72
+ const taglineText = isMobile ? 'HQX' : 'PROP FUTURES ALGO TRADING';
73
+ const versionText = `V${version}`;
74
+ const fullTagline = `${taglineText} ${versionText}`;
75
+ const taglinePadding = innerWidth - fullTagline.length;
76
+ const taglineLeftPad = Math.floor(taglinePadding / 2);
77
+ console.log(chalk.cyan('║') + ' '.repeat(taglineLeftPad) + chalk.yellow(taglineText) + ' ' + chalk.magenta(versionText) + ' '.repeat(taglinePadding - taglineLeftPad) + chalk.cyan('║'));
74
78
 
75
79
  // ALWAYS close the banner
76
80
  console.log(chalk.cyan('╚' + '═'.repeat(innerWidth) + '╝'));