hedgequantx 1.8.24 → 1.8.26

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "1.8.24",
3
+ "version": "1.8.26",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -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'));
@@ -35,7 +35,7 @@ const copyTradingMenu = async () => {
35
35
 
36
36
  if (allConns.length < 2) {
37
37
  console.log();
38
- console.log(chalk.yellow(' Copy Trading requires 2 connected accounts'));
38
+ console.log(chalk.yellow(` Copy Trading requires 2 connected accounts (found: ${allConns.length})`));
39
39
  console.log(chalk.gray(' Connect to another PropFirm first'));
40
40
  console.log();
41
41
  await prompts.waitForEnter();
@@ -43,7 +43,7 @@ const copyTradingMenu = async () => {
43
43
  }
44
44
 
45
45
  console.log();
46
- console.log(chalk.magenta.bold(' Copy Trading Setup'));
46
+ console.log(chalk.yellow.bold(' Copy Trading Setup'));
47
47
  console.log();
48
48
 
49
49
  const spinner = ora({ text: 'Fetching accounts...', color: 'yellow' }).start();
@@ -19,11 +19,11 @@ const algoTradingMenu = async (service) => {
19
19
 
20
20
  console.log();
21
21
  console.log(chalk.gray(getSeparator()));
22
- console.log(chalk.magenta.bold(' Algo-Trading'));
22
+ console.log(chalk.yellow.bold(' Algo-Trading'));
23
23
  console.log(chalk.gray(getSeparator()));
24
24
  console.log();
25
25
 
26
- const action = await prompts.selectOption('Select Mode:', [
26
+ const action = await prompts.selectOption(chalk.yellow('Select Mode:'), [
27
27
  { value: 'one_account', label: 'One Account' },
28
28
  { value: 'copy_trading', label: 'Copy Trading' },
29
29
  { value: 'back', label: '< Back' }
@@ -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'));