hedgequantx 1.8.6 → 1.8.7
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/app.js +1 -1
- package/src/menus/dashboard.js +1 -1
- package/src/pages/algo/copy-trading.js +12 -16
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -170,7 +170,7 @@ const mainMenu = async () => {
|
|
|
170
170
|
|
|
171
171
|
console.log(chalk.cyan('╚' + '═'.repeat(innerWidth) + '╝'));
|
|
172
172
|
|
|
173
|
-
const input = await prompts.textInput('Select (1/2/3/X)');
|
|
173
|
+
const input = await prompts.textInput(chalk.cyan('Select (1/2/3/X)'));
|
|
174
174
|
|
|
175
175
|
const actionMap = {
|
|
176
176
|
'1': 'projectx',
|
package/src/menus/dashboard.js
CHANGED
|
@@ -91,7 +91,7 @@ const dashboardMenu = async (service) => {
|
|
|
91
91
|
console.log(chalk.cyan('╚' + '═'.repeat(W) + '╝'));
|
|
92
92
|
|
|
93
93
|
// Simple input - no duplicate menu
|
|
94
|
-
const input = await prompts.textInput('Select (1/2/+/A/U/X)');
|
|
94
|
+
const input = await prompts.textInput(chalk.cyan('Select (1/2/+/A/U/X)'));
|
|
95
95
|
|
|
96
96
|
const actionMap = {
|
|
97
97
|
'1': 'accounts',
|
|
@@ -84,20 +84,15 @@ const copyTradingMenu = async () => {
|
|
|
84
84
|
if (followerIdx === null || followerIdx === -1) return;
|
|
85
85
|
const follower = allAccounts[followerIdx];
|
|
86
86
|
|
|
87
|
-
// Step 3
|
|
87
|
+
// Step 3: Select Trading Symbol
|
|
88
88
|
console.log();
|
|
89
|
-
console.log(chalk.cyan(' Step 3: Select Symbol
|
|
90
|
-
const
|
|
91
|
-
if (!
|
|
89
|
+
console.log(chalk.cyan(' Step 3: Select Trading Symbol'));
|
|
90
|
+
const symbol = await selectSymbol(lead.service, 'Trading');
|
|
91
|
+
if (!symbol) return;
|
|
92
92
|
|
|
93
|
+
// Step 4: Configure parameters
|
|
93
94
|
console.log();
|
|
94
|
-
console.log(chalk.cyan(' Step 4:
|
|
95
|
-
const followerSymbol = await selectSymbol(follower.service, 'Follower');
|
|
96
|
-
if (!followerSymbol) return;
|
|
97
|
-
|
|
98
|
-
// Step 5: Configure parameters
|
|
99
|
-
console.log();
|
|
100
|
-
console.log(chalk.cyan(' Step 5: Configure Parameters'));
|
|
95
|
+
console.log(chalk.cyan(' Step 4: Configure Parameters'));
|
|
101
96
|
|
|
102
97
|
const leadContracts = await prompts.numberInput('Lead contracts:', 1, 1, 10);
|
|
103
98
|
if (leadContracts === null) return;
|
|
@@ -111,7 +106,7 @@ const copyTradingMenu = async () => {
|
|
|
111
106
|
const maxRisk = await prompts.numberInput('Max risk ($):', 200, 1, 5000);
|
|
112
107
|
if (maxRisk === null) return;
|
|
113
108
|
|
|
114
|
-
// Step
|
|
109
|
+
// Step 5: Privacy
|
|
115
110
|
const showNames = await prompts.selectOption('Account names:', [
|
|
116
111
|
{ label: 'Hide account names', value: false },
|
|
117
112
|
{ label: 'Show account names', value: true }
|
|
@@ -121,8 +116,9 @@ const copyTradingMenu = async () => {
|
|
|
121
116
|
// Confirm
|
|
122
117
|
console.log();
|
|
123
118
|
console.log(chalk.white(' Summary:'));
|
|
124
|
-
console.log(chalk.gray(`
|
|
125
|
-
console.log(chalk.gray(`
|
|
119
|
+
console.log(chalk.gray(` Symbol: ${symbol.name}`));
|
|
120
|
+
console.log(chalk.gray(` Lead: ${lead.propfirm} x${leadContracts}`));
|
|
121
|
+
console.log(chalk.gray(` Follower: ${follower.propfirm} x${followerContracts}`));
|
|
126
122
|
console.log(chalk.gray(` Target: $${dailyTarget} | Risk: $${maxRisk}`));
|
|
127
123
|
console.log();
|
|
128
124
|
|
|
@@ -131,8 +127,8 @@ const copyTradingMenu = async () => {
|
|
|
131
127
|
|
|
132
128
|
// Launch
|
|
133
129
|
await launchCopyTrading({
|
|
134
|
-
lead: { ...lead, symbol
|
|
135
|
-
follower: { ...follower, symbol
|
|
130
|
+
lead: { ...lead, symbol, contracts: leadContracts },
|
|
131
|
+
follower: { ...follower, symbol, contracts: followerContracts },
|
|
136
132
|
dailyTarget, maxRisk, showNames
|
|
137
133
|
});
|
|
138
134
|
};
|