hedgequantx 2.6.21 → 2.6.22
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 +14 -2
package/package.json
CHANGED
package/src/pages/algo/index.js
CHANGED
|
@@ -75,10 +75,22 @@ const algoTradingMenu = async (service) => {
|
|
|
75
75
|
const choice = await prompts.textInput(chalk.cyan('SELECT:'));
|
|
76
76
|
|
|
77
77
|
if (choice === '1') {
|
|
78
|
-
|
|
78
|
+
try {
|
|
79
|
+
await oneAccountMenu(service);
|
|
80
|
+
} catch (err) {
|
|
81
|
+
console.log(chalk.red(`\n ERROR: ${err.message}`));
|
|
82
|
+
console.log(chalk.gray(` ${err.stack}`));
|
|
83
|
+
await prompts.waitForEnter();
|
|
84
|
+
}
|
|
79
85
|
return algoTradingMenu(service);
|
|
80
86
|
} else if (choice === '2') {
|
|
81
|
-
|
|
87
|
+
try {
|
|
88
|
+
await copyTradingMenu();
|
|
89
|
+
} catch (err) {
|
|
90
|
+
console.log(chalk.red(`\n ERROR: ${err.message}`));
|
|
91
|
+
console.log(chalk.gray(` ${err.stack}`));
|
|
92
|
+
await prompts.waitForEnter();
|
|
93
|
+
}
|
|
82
94
|
return algoTradingMenu(service);
|
|
83
95
|
}
|
|
84
96
|
|