hedgequantx 1.2.83 → 1.2.85
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 +3 -3
package/package.json
CHANGED
package/src/pages/algo.js
CHANGED
|
@@ -326,9 +326,9 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
326
326
|
winRate: '0.0'
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
// Logs buffer (newest first)
|
|
329
|
+
// Logs buffer (newest first) - limit to 8 for clean display
|
|
330
330
|
const logs = [];
|
|
331
|
-
const MAX_LOGS =
|
|
331
|
+
const MAX_LOGS = 8;
|
|
332
332
|
|
|
333
333
|
// Log colors
|
|
334
334
|
const typeColors = {
|
|
@@ -507,7 +507,7 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
507
507
|
const midSpace = Math.max(0, W - leftLen - rightLen);
|
|
508
508
|
const datePad = Math.max(0, Math.floor((midSpace - dateCentered.length) / 2));
|
|
509
509
|
const remainingPad = Math.max(0, midSpace - datePad - dateCentered.length);
|
|
510
|
-
const dateSection = ' '.repeat(datePad) + chalk.
|
|
510
|
+
const dateSection = ' '.repeat(datePad) + chalk.cyan(dateCentered) + ' '.repeat(remainingPad);
|
|
511
511
|
console.log(chalk.cyan(V) + chalk.white(actLeft) + dateSection + chalk.yellow(actRight) + chalk.cyan(V));
|
|
512
512
|
console.log(chalk.cyan(BOT));
|
|
513
513
|
|