hedgequantx 2.6.5 → 2.6.6
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 +1 -1
- package/src/pages/algo/index.js +6 -1
package/package.json
CHANGED
package/src/pages/algo/index.js
CHANGED
|
@@ -26,7 +26,12 @@ const algoTradingMenu = async (service) => {
|
|
|
26
26
|
displayBanner();
|
|
27
27
|
drawBoxHeaderContinue('ALGO TRADING', boxWidth);
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
// Centered menu line: numbers in cyan, text in yellow
|
|
30
|
+
const menuText = chalk.cyan('[1]') + chalk.yellow(' ONE ACCOUNT ') + chalk.cyan('[2]') + chalk.yellow(' COPY TRADING');
|
|
31
|
+
const plainLen = '[1] ONE ACCOUNT [2] COPY TRADING'.length;
|
|
32
|
+
const leftPad = Math.floor((W - plainLen) / 2);
|
|
33
|
+
const rightPad = W - plainLen - leftPad;
|
|
34
|
+
console.log(chalk.cyan('║') + ' '.repeat(leftPad) + menuText + ' '.repeat(rightPad) + chalk.cyan('║'));
|
|
30
35
|
|
|
31
36
|
drawBoxFooter(boxWidth);
|
|
32
37
|
|