hedgequantx 1.8.22 → 1.8.24
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
|
@@ -337,11 +337,15 @@ const launchCopyTrading = async (config) => {
|
|
|
337
337
|
// Summary
|
|
338
338
|
console.clear();
|
|
339
339
|
console.log();
|
|
340
|
-
console.log(chalk.cyan('
|
|
341
|
-
console.log();
|
|
342
|
-
console.log(chalk.
|
|
343
|
-
console.log(chalk.white(`
|
|
344
|
-
console.log(
|
|
340
|
+
console.log(chalk.cyan('╔════════════════════════════════════════════════════════════════╗'));
|
|
341
|
+
console.log(chalk.cyan('║') + chalk.white(' Copy Trading Summary ') + chalk.cyan('║'));
|
|
342
|
+
console.log(chalk.cyan('╠════════════════════════════════════════════════════════════════╣'));
|
|
343
|
+
console.log(chalk.cyan('║') + chalk.white(` Stop Reason: ${(stopReason || 'unknown').padEnd(47)}`) + chalk.cyan('║'));
|
|
344
|
+
console.log(chalk.cyan('║') + chalk.white(` Trades: ${String(stats.trades).padEnd(10)} Wins: ${String(stats.wins).padEnd(10)} Losses: ${String(stats.losses).padEnd(10)}`) + chalk.cyan('║'));
|
|
345
|
+
const pnlColor = stats.pnl >= 0 ? chalk.green : chalk.red;
|
|
346
|
+
const pnlStr = `${stats.pnl >= 0 ? '+' : ''}$${stats.pnl.toFixed(2)}`;
|
|
347
|
+
console.log(chalk.cyan('║') + chalk.white(' P&L: ') + pnlColor(pnlStr.padEnd(55)) + chalk.cyan('║'));
|
|
348
|
+
console.log(chalk.cyan('╚════════════════════════════════════════════════════════════════╝'));
|
|
345
349
|
console.log();
|
|
346
350
|
|
|
347
351
|
await prompts.waitForEnter();
|
|
@@ -244,11 +244,15 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
244
244
|
// Summary
|
|
245
245
|
console.clear();
|
|
246
246
|
console.log();
|
|
247
|
-
console.log(chalk.cyan('
|
|
248
|
-
console.log();
|
|
249
|
-
console.log(chalk.
|
|
250
|
-
console.log(chalk.white(`
|
|
251
|
-
console.log(
|
|
247
|
+
console.log(chalk.cyan('╔════════════════════════════════════════════════════════════════╗'));
|
|
248
|
+
console.log(chalk.cyan('║') + chalk.white(' Session Summary ') + chalk.cyan('║'));
|
|
249
|
+
console.log(chalk.cyan('╠════════════════════════════════════════════════════════════════╣'));
|
|
250
|
+
console.log(chalk.cyan('║') + chalk.white(` Stop Reason: ${(stopReason || 'unknown').padEnd(47)}`) + chalk.cyan('║'));
|
|
251
|
+
console.log(chalk.cyan('║') + chalk.white(` Trades: ${String(stats.trades).padEnd(10)} Wins: ${String(stats.wins).padEnd(10)} Losses: ${String(stats.losses).padEnd(10)}`) + chalk.cyan('║'));
|
|
252
|
+
const pnlColor = stats.pnl >= 0 ? chalk.green : chalk.red;
|
|
253
|
+
const pnlStr = `${stats.pnl >= 0 ? '+' : ''}$${stats.pnl.toFixed(2)}`;
|
|
254
|
+
console.log(chalk.cyan('║') + chalk.white(' P&L: ') + pnlColor(pnlStr.padEnd(55)) + chalk.cyan('║'));
|
|
255
|
+
console.log(chalk.cyan('╚════════════════════════════════════════════════════════════════╝'));
|
|
252
256
|
console.log();
|
|
253
257
|
|
|
254
258
|
await prompts.waitForEnter();
|
package/src/pages/algo/ui.js
CHANGED