hedgequantx 1.2.144 → 1.2.146
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 +48 -5
- package/src/pages/algo/copy-trading.js +404 -0
- package/src/pages/algo/index.js +51 -0
- package/src/pages/algo/one-account.js +352 -0
- package/src/pages/algo/ui.js +268 -0
- package/src/pages/algo.js +3 -2277
- package/src/services/hqx-server.js +27 -0
|
@@ -292,6 +292,33 @@ class HQXServerService {
|
|
|
292
292
|
this.send('stop_algo', {});
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
/**
|
|
296
|
+
* Start copy trading session
|
|
297
|
+
*/
|
|
298
|
+
startCopyTrading(config) {
|
|
299
|
+
this.send('start_copy_trading', {
|
|
300
|
+
// Lead account
|
|
301
|
+
leadAccountId: config.leadAccountId,
|
|
302
|
+
leadContractId: config.leadContractId,
|
|
303
|
+
leadSymbol: config.leadSymbol,
|
|
304
|
+
leadContracts: config.leadContracts,
|
|
305
|
+
leadPropfirm: config.leadPropfirm,
|
|
306
|
+
leadToken: config.leadToken,
|
|
307
|
+
leadRithmicCredentials: config.leadRithmicCredentials,
|
|
308
|
+
// Follower account
|
|
309
|
+
followerAccountId: config.followerAccountId,
|
|
310
|
+
followerContractId: config.followerContractId,
|
|
311
|
+
followerSymbol: config.followerSymbol,
|
|
312
|
+
followerContracts: config.followerContracts,
|
|
313
|
+
followerPropfirm: config.followerPropfirm,
|
|
314
|
+
followerToken: config.followerToken,
|
|
315
|
+
followerRithmicCredentials: config.followerRithmicCredentials,
|
|
316
|
+
// Targets
|
|
317
|
+
dailyTarget: config.dailyTarget,
|
|
318
|
+
maxRisk: config.maxRisk
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
|
|
295
322
|
/**
|
|
296
323
|
* Event listeners
|
|
297
324
|
*/
|