hedgequantx 1.2.76 → 1.2.77
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.js +8 -7
package/package.json
CHANGED
package/src/pages/algo.js
CHANGED
|
@@ -386,7 +386,7 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
386
386
|
// Stats
|
|
387
387
|
const pnlColor = stats.pnl >= 0 ? chalk.green : chalk.red;
|
|
388
388
|
const pnlStr = (stats.pnl >= 0 ? '+$' : '-$') + Math.abs(stats.pnl).toFixed(2);
|
|
389
|
-
const latencyStr = hqxConnected ? (latency > 0 ?
|
|
389
|
+
const latencyStr = hqxConnected ? (latency > 0 ? `${latency}ms` : '--') : '--';
|
|
390
390
|
const latencyColor = latency < 100 ? chalk.green : (latency < 300 ? chalk.yellow : chalk.red);
|
|
391
391
|
const serverStatus = hqxConnected ? 'ON' : 'OFF';
|
|
392
392
|
const serverColor = hqxConnected ? chalk.green : chalk.red;
|
|
@@ -419,12 +419,13 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
419
419
|
|
|
420
420
|
console.log();
|
|
421
421
|
console.log(chalk.cyan(TOP));
|
|
422
|
-
|
|
423
|
-
console.log(chalk.cyan(V) + chalk.cyan('
|
|
424
|
-
console.log(chalk.cyan(V) + chalk.cyan('
|
|
425
|
-
console.log(chalk.cyan(V) + chalk.cyan('
|
|
426
|
-
console.log(chalk.cyan(V) + chalk.cyan(' ██║
|
|
427
|
-
console.log(chalk.cyan(V) + chalk.cyan('
|
|
422
|
+
// Logo = 87 chars cyan + 9 chars yellow = 96 total
|
|
423
|
+
console.log(chalk.cyan(V) + chalk.cyan(' ██╗ ██╗███████╗██████╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗ █████╗ ███╗ ██╗████████╗') + chalk.yellow('██╗ ██╗') + ' ' + chalk.cyan(V));
|
|
424
|
+
console.log(chalk.cyan(V) + chalk.cyan(' ██║ ██║██╔════╝██╔══██╗██╔════╝ ██╔════╝██╔═══██╗██║ ██║██╔══██╗████╗ ██║╚══██╔══╝') + chalk.yellow('╚██╗██╔╝') + ' ' + chalk.cyan(V));
|
|
425
|
+
console.log(chalk.cyan(V) + chalk.cyan(' ███████║█████╗ ██║ ██║██║ ███╗█████╗ ██║ ██║██║ ██║███████║██╔██╗ ██║ ██║ ') + chalk.yellow(' ╚███╔╝ ') + ' ' + chalk.cyan(V));
|
|
426
|
+
console.log(chalk.cyan(V) + chalk.cyan(' ██╔══██║██╔══╝ ██║ ██║██║ ██║██╔══╝ ██║▄▄ ██║██║ ██║██╔══██║██║╚██╗██║ ██║ ') + chalk.yellow(' ██╔██╗ ') + ' ' + chalk.cyan(V));
|
|
427
|
+
console.log(chalk.cyan(V) + chalk.cyan(' ██║ ██║███████╗██████╔╝╚██████╔╝███████╗╚██████╔╝╚██████╔╝██║ ██║██║ ╚████║ ██║ ') + chalk.yellow('██╔╝ ██╗') + ' ' + chalk.cyan(V));
|
|
428
|
+
console.log(chalk.cyan(V) + chalk.cyan(' ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══▀▀═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ') + chalk.yellow('╚═╝ ╚═╝') + ' ' + chalk.cyan(V));
|
|
428
429
|
console.log(chalk.cyan(MID));
|
|
429
430
|
|
|
430
431
|
// Centered title
|