hedgequantx 1.8.24 → 1.8.25
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
|
@@ -20,9 +20,9 @@ const log = logger.scope('CopyTrading');
|
|
|
20
20
|
const copyTradingMenu = async () => {
|
|
21
21
|
log.info('Copy Trading menu opened');
|
|
22
22
|
|
|
23
|
-
// Check if market is open
|
|
23
|
+
// Check if market is open (skip early close check - market may still be open)
|
|
24
24
|
const market = checkMarketHours();
|
|
25
|
-
if (!market.isOpen) {
|
|
25
|
+
if (!market.isOpen && !market.message.includes('early')) {
|
|
26
26
|
console.log();
|
|
27
27
|
console.log(chalk.red(` ${market.message}`));
|
|
28
28
|
console.log(chalk.gray(' Algo trading is only available when market is open'));
|
|
@@ -16,9 +16,9 @@ const { checkMarketHours } = require('../../services/projectx/market');
|
|
|
16
16
|
* One Account Menu
|
|
17
17
|
*/
|
|
18
18
|
const oneAccountMenu = async (service) => {
|
|
19
|
-
// Check if market is open
|
|
19
|
+
// Check if market is open (skip early close check - market may still be open)
|
|
20
20
|
const market = checkMarketHours();
|
|
21
|
-
if (!market.isOpen) {
|
|
21
|
+
if (!market.isOpen && !market.message.includes('early')) {
|
|
22
22
|
console.log();
|
|
23
23
|
console.log(chalk.red(` ${market.message}`));
|
|
24
24
|
console.log(chalk.gray(' Algo trading is only available when market is open'));
|