hedgequantx 2.6.21 → 2.6.23
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
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
|
|
|
@@ -270,7 +270,7 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
270
270
|
if (tickSize !== null && tickValue !== null) {
|
|
271
271
|
strategy.initialize(contractId, tickSize, tickValue);
|
|
272
272
|
} else {
|
|
273
|
-
algoLogger.
|
|
273
|
+
algoLogger.warning(ui, 'WARNING', 'Tick size/value not available from API');
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
// Initialize Position Manager for fast path
|